mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2024-12-14 10:23:17 +02:00
Previous change didn't fix the player leaving crash. This should.
This commit is contained in:
parent
4052c85731
commit
3b538183f3
@ -74,7 +74,7 @@ function FindUnusedSpawns(event)
|
||||
-- Check if it was near someone else's base.
|
||||
nearOtherSpawn = false
|
||||
for _,otherSpawnPos in pairs(global.uniqueSpawns) do
|
||||
if (getDistance(spawnPos, otherSpawnPos) < (CHUNK_SIZE*10)) then
|
||||
if (getDistance(spawnPos, otherSpawnPos.pos) < (CHUNK_SIZE*10)) then
|
||||
nearOtherSpawn = true
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user