I am doing LuaSurface.set_tiles() and might put water or not-on-map under the player. This kills the player.
I'd like to teleport the player to a nearby safe-to-exist spot. Is there an easy way to find such a spot?
How can I move the player to a safe spot?
Re: How can I move the player to a safe spot?
First teleport player away, then place tiles then player.teleport(surface.find_non_colliding_position(players original position, other options))
Something like that anyway.
Something like that anyway.