mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2025-01-22 03:08:49 +02:00
World eater entity invalid bug. Needs some checks added.
This commit is contained in:
parent
9d3359a6fd
commit
641c2f14d9
@ -370,7 +370,9 @@ function WorldEaterSingleStep()
|
||||
-- If all entities found have no last user, then KILL all entities!
|
||||
if (not has_last_user_set) then
|
||||
for k,v in pairs(entities) do
|
||||
v.die(nil)
|
||||
if (v and v.valid) then
|
||||
v.die(nil)
|
||||
end
|
||||
end
|
||||
-- SendBroadcastMsg(next_chunk.x .. "," .. next_chunk.y .. " WorldEaterSingleStep - ENTITIES FOUND")
|
||||
global.rg.map[next_chunk.x][next_chunk.y] = game.tick -- Set the timer on it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user