1
0
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:
Oarcinae 2018-01-26 20:47:10 -05:00
parent 4052c85731
commit 3b538183f3

View File

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