mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
fix spawn lag
This commit is contained in:
@@ -154,7 +154,7 @@ Gui.left.add{
|
|||||||
}
|
}
|
||||||
for name,warp in pairs(_warps().warps) do
|
for name,warp in pairs(_warps().warps) do
|
||||||
if not warp.tag or not warp.tag.valid then
|
if not warp.tag or not warp.tag.valid then
|
||||||
player.force.add_chart_tag(warp.surface,{
|
warp.tag = player.force.add_chart_tag(warp.surface,{
|
||||||
position=warp.position,
|
position=warp.position,
|
||||||
text='Warp: '..name,
|
text='Warp: '..name,
|
||||||
icon={type='item',name=warp_item}
|
icon={type='item',name=warp_item}
|
||||||
@@ -234,4 +234,4 @@ Event.register(defines.events.on_player_created, function(event)
|
|||||||
})
|
})
|
||||||
_warps().warps['Spawn'] = {tag=tag,surface=player.surface,position={0,0}}
|
_warps().warps['Spawn'] = {tag=tag,surface=player.surface,position={0,0}}
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user