From 0ee7679ea9b7f3ee8014c8b4632130ca90aadfac Mon Sep 17 00:00:00 2001 From: Someone Date: Sat, 1 Jun 2019 20:18:31 +0200 Subject: [PATCH] Code reformatted. --- control.lua | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/control.lua b/control.lua index f31774b..f53174b 100755 --- a/control.lua +++ b/control.lua @@ -1,11 +1,12 @@ --- only needed on first startup. Create stuff and be done. - -script.on_event(defines.events.on_player_created, function (event) - game.permissions.get_group("Default").set_allows_action(defines.input_action.craft ,false) - local player = game.players[event.player_index] - player.insert{name="assembling-machine-3", count=1} - player.insert{name="small-electric-pole", count=1} - player.insert{name="boiler", count=1} - player.insert{name="steam-engine", count=1} - player.insert{name="offshore-pump", count=1} -end) +-- only needed on first startup. Create stuff and be done. + +script.on_event(defines.events.on_player_created, function (event) + game.permissions.get_group("Default").set_allows_action(defines.input_action.craft ,false) + + local player = game.players[event.player_index] + player.insert{name="assembling-machine-3", count=1} + player.insert{name="small-electric-pole", count=1} + player.insert{name="boiler", count=1} + player.insert{name="steam-engine", count=1} + player.insert{name="offshore-pump", count=1} +end) -- 2.43.0