LuaTile.get_tile_ghosts seems to have wrong return type

Post Reply
Hanodest
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Aug 11, 2024 10:55 pm
Contact:

LuaTile.get_tile_ghosts seems to have wrong return type

Post 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
 

Bilka
Factorio Staff
Factorio Staff
Posts: 3236
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaTile.get_tile_ghosts seems to have wrong return type

Post by Bilka »

Thanks for the note, fixed for the next doc release (1.1.110).
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Resolved Requests”