mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2024-12-14 10:23:17 +02:00
Another terrible bug.
This commit is contained in:
parent
20b0a04d93
commit
595026e80f
@ -423,8 +423,8 @@ function FindPlayerSharedSpawn(playerName)
|
||||
|
||||
-- Otherwise, search all shared spawns for this player and return the owner.
|
||||
for ownerName,sharedSpawn in pairs(global.sharedSpawns) do
|
||||
for _,playerName in pairs(sharedSpawn.players) do
|
||||
if (target_player.name == playerName) then
|
||||
for _,sharingPlayerName in pairs(sharedSpawn.players) do
|
||||
if (playerName == sharingPlayerName) then
|
||||
return ownerName
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user