mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixed multiple spawn warps being created
This commit is contained in:
@@ -526,8 +526,10 @@ Event.add(defines.events.on_player_created,function(event)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local force = player.force
|
local force = player.force
|
||||||
local spawn_position = force.get_spawn_position(player.surface)
|
if not Warps.forces[force.name] then
|
||||||
Warps.new_warp(force.name,player.surface,spawn_position,nil,'Spawn',true,true)
|
local spawn_position = force.get_spawn_position(player.surface)
|
||||||
|
Warps.new_warp(force.name,player.surface,spawn_position,nil,'Spawn',true,true)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local function maintain_tag(event)
|
local function maintain_tag(event)
|
||||||
|
|||||||
Reference in New Issue
Block a user