LuaTile.get_tile_ghosts seems to have wrong return type
Posted: Sun Aug 11, 2024 11:04 pm
Documentation says that this method returns array[LuaTile].
Testing in game suggests that the result is actually array[LuaEntity], specifically ghost entities.
Testing in game suggests that the result is actually array[LuaEntity], specifically ghost entities.
Code: Select all
/c game.print(game.player.surface.find_tiles_filtered({has_tile_ghost=true})[1].get_tile_ghosts()[1].type)
>> tile-ghost