Merge branch 'hotfix/5.2.2'

This commit is contained in:
Cooldude2606
2019-04-04 20:59:31 +01:00

View File

@@ -88,9 +88,9 @@ function Public.spawn_compilatron(surface,location)
Public.add_compilatron(compi,location) Public.add_compilatron(compi,location)
end end
-- When the first player is created this will create all comilatrons that are resisted in the config -- When the first player is created this will create all compilatrons that are resisted in the config
Event.add(defines.events.on_player_created,function(event) Event.add(defines.events.on_player_created,function(event)
if not event.player_index == 1 then return end if event.player_index ~= 1 then return end
local player = Game.get_player_by_index(event.player_index) local player = Game.get_player_by_index(event.player_index)
for location,pos in pairs(locations) do for location,pos in pairs(locations) do
Public.spawn_compilatron(player.surface,location) Public.spawn_compilatron(player.surface,location)