1) start new game
Code: Select all
/c
local tile = game.player.surface.get_tile(1000, 0)
game.print(tile.name)
Code: Select all
/c
local tile = game.player.surface.get_tile(1000, 0)
game.print(tile.name)
You didn't say what should be done.
Maintain the expectation.
Supposedly they check valid. Most likely, I would guess, they don't.pleegwat wrote: Wed Sep 21, 2022 4:51 pm The existing interface is that a LuaTile is always returned and you need to check .valid. So most likely all existing mods assume the returned value is non-nil and check .valid, which would trigger an error if they suddenly got nil.