Page 1 of 1

LuaTile.get_tile_ghosts seems to have wrong return type

Posted: Sun Aug 11, 2024 11:04 pm
by Hanodest
Documentation says that this method returns array[LuaTile].
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
 

Re: LuaTile.get_tile_ghosts seems to have wrong return type

Posted: Thu Aug 15, 2024 9:39 am
by Bilka
Thanks for the note, fixed for the next doc release (1.1.110).