mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Hopefully fixed desync
This commit is contained in:
@@ -172,8 +172,8 @@ Event.register(defines.events.on_player_respawned,function(event)
|
|||||||
if Gui._global().players and is_type(Gui._global().players,'table') and #Gui._global().players > 0 and Gui._global().players[event.player_index] then
|
if Gui._global().players and is_type(Gui._global().players,'table') and #Gui._global().players > 0 and Gui._global().players[event.player_index] then
|
||||||
local remove = {}
|
local remove = {}
|
||||||
for index,cam in pairs(Gui._global().players[event.player_index]) do
|
for index,cam in pairs(Gui._global().players[event.player_index]) do
|
||||||
Gui.cam_link{cam=cam,entity=Game.get_player(event).character}
|
if not cam.valid then table.insert(remove,index)
|
||||||
if not cam.valid then table.insert(remove,index) end
|
else cam.entity=Game.get_player(event).character end
|
||||||
end
|
end
|
||||||
for _,index in pairs(remove) do
|
for _,index in pairs(remove) do
|
||||||
table.remove(Gui._global().players[event.player_index],index)
|
table.remove(Gui._global().players[event.player_index],index)
|
||||||
|
|||||||
Reference in New Issue
Block a user