Page 1 of 1

[0.15.12] LuaSurface.find_entities luadocs are bugged

Posted: Sat May 20, 2017 10:48 am
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.

Re: [0.15.12] LuaSurface.find_entities luadocs are bugged

Posted: Sun May 21, 2017 4:20 am
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.