start with burner inserter
This commit is contained in:
parent
30e9760ef7
commit
4116dc4fe2
3 changed files with 24 additions and 0 deletions
16
control.lua
16
control.lua
|
|
@ -14,3 +14,19 @@ function on_console_chat(event)
|
|||
end
|
||||
end
|
||||
script.on_event(defines.events.on_console_chat, on_console_chat)
|
||||
|
||||
|
||||
-- Free burner inserter
|
||||
-- (thanks to modder planetfall for inspiration, from Brass Tacks)
|
||||
script.on_init(
|
||||
function()
|
||||
if remote.interfaces["freeplay"] then
|
||||
local care_package = remote.call("freeplay", "get_created_items")
|
||||
if settings.global["bzaluminum-starting-items"].value then
|
||||
care_package["burner-inserter"] = 1
|
||||
end
|
||||
remote.call("freeplay", "set_created_items", care_package)
|
||||
end
|
||||
end
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue