mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed spawn regenerating for every new player
This commit is contained in:
@@ -130,7 +130,7 @@ Event.on_nth_tick(refill_time,function()
|
||||
end)
|
||||
|
||||
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 p = {x=0,y=0}
|
||||
local s = player.surface
|
||||
|
||||
Reference in New Issue
Block a user