LuaSurface.find_entity talks about "type"

Honktown
Smart Inserter
Smart Inserter
Posts: 1042
Joined: Thu Oct 03, 2019 7:10 am
Contact:

LuaSurface.find_entity talks about "type"

Post by Honktown »

https://lua-api.factorio.com/1.1.100/cl ... ind_entity
Find an entity of the given type at the given position.
...
Find an entity of the given type at the given position. This checks both the exact position and the bounding box of the entity.
It should say name, as that is by what it searches. It leans towards name later in the description (a type doesn't have a bounding-box e.g.), and uses a name in the example, but it doesn't explicitly use "name" anywhere.
I have mods! I guess!
Link
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaSurface.find_entity talks about "type"

Post by Bilka »

Thanks for noting this, fixed for the next version.
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”