mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-20 23:33:12 +09:00
Fixed multiple spawn warps being created
This commit is contained in:
1 parent
7e06bfea13
commit
792dcc0330
1 file changed
+4
-2
@@ -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