mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Merge branch 'hotfix/5.2.2'
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user