Code: Select all
player.cursor_stack.create_blueprint{surface = surface, force = belt.force,area = a}
local old_blueprint = player.cursor_stack.get_blueprint_entities()

Code: Select all
player.cursor_stack.create_blueprint{surface = surface, force = belt.force,area = a}
local old_blueprint = player.cursor_stack.get_blueprint_entities()
Code: Select all
recipe.normal.enabled = recipe.enabled
recipe.expensive.enabled = recipe.enabled
recipe.enabled = nil
Code: Select all
recipe.normal.ingredients = table.deepcopy(recipe.ingredients)
recipe.expensive.ingredients = table.deepcopy(recipe.ingredients)
recipe.ingredients = nil