[0.15.12] LuaSurface.find_entities luadocs are bugged

This subforum contains all the issues which we already resolved.
folk
Fast Inserter
Fast Inserter
Posts: 104
Joined: Fri Mar 03, 2017 5:00 pm
Contact:

[0.15.12] LuaSurface.find_entities luadocs are bugged

Post by folk »

http://lua-api.factorio.com/latest/LuaS ... s_filtered

This is the current wording for area/position:

Code: Select all

area :: BoundingBox (optional): Search area if not defined and position is not defined the entire surface is searched
position :: Position (optional): Search position if not defined and area is not defined the entire surface is searched
I am unable to parse it. I presume this interpretation is the correct one, but I am not sure:

Code: Select all

area :: BoundingBox (optional): Search area. If neither area nor position is defined, the entire surface is searched.
position :: Position (optional): Search position. If neither area nor position is defined, the entire surface is searched.
But that says nothing of what takes precedence if both arguments are given, for some reason.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16024
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.12] LuaSurface.find_entities luadocs are bugged

Post by Rseding91 »

I've improved the docs to say which will be used when both are given as well as when neither are given the whole surface is searched.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”