mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-10 16:08:13 -06:00
Fix: getting player_index from the proper places
This commit is contained in:
@@ -79,7 +79,7 @@ local function create_player(player_index)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function manager_gui.on_player_created(e)
|
function manager_gui.on_player_created(e)
|
||||||
create_player(player_index)
|
create_player(e.player_index)
|
||||||
end
|
end
|
||||||
|
|
||||||
function manager_gui.on_player_removed(e)
|
function manager_gui.on_player_removed(e)
|
||||||
@@ -153,7 +153,7 @@ end
|
|||||||
|
|
||||||
function manager_gui.on_migration()
|
function manager_gui.on_migration()
|
||||||
for i, p in pairs(game.players) do
|
for i, p in pairs(game.players) do
|
||||||
if global.manager.players[player_index] == nil then
|
if global.manager.players[i] == nil then
|
||||||
create_player(i)
|
create_player(i)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user