[1.1.32] Unexpected behaviour of LuaTile hidden_tile
Posted: Mon Apr 19, 2021 6:00 am
This prints "sand-1"
But this prints NIL
Expected to both to be NIL
Code: Select all
/c
p = game.player.position
game.surfaces.nauvis.set_tiles({{name = "sand-1", position = p}}, true)
game.surfaces.nauvis.set_tiles({{name = "concrete", position = p}}, true)
game.surfaces.nauvis.set_tiles({{name = "sand-2", position = p}}, true)
game.print(game.player.surface.get_tile(p).hidden_tile)
Code: Select all
/c
p = game.player.position
game.surfaces.nauvis.set_tiles({{name = "sand-1", position = p}}, true)
game.surfaces.nauvis.set_tiles({{name = "sand-2", position = p}}, true)
game.print(game.player.surface.get_tile(p).hidden_tile)