1
0
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:
Oarcinae 2020-02-16 23:28:49 -05:00
parent 20b0a04d93
commit 595026e80f

View File

@ -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