[Rseding91] [0.14.12] Unexpected LuaInventory.has_filters() result
Posted: Wed Oct 05, 2016 5:15 am
Referencing this function: http://lua-api.factorio.com/latest/LuaI ... as_filters
I had expected that this function would return true if an inventory has any filters currently set, and false if every slot is unfiltered. However, this is not the case, and the function still returns true on an inventory with no filters set. The following screenshots demonstrate the unexpected behavior:
Here the function returns true, as expected since there are filters set. However, here the function still returns true, despite no slots being filtered. This is the unexpected behavior of concern in this report. Here the function returns false as expected, since chests cannot have filters set.
I had expected that this function would return true if an inventory has any filters currently set, and false if every slot is unfiltered. However, this is not the case, and the function still returns true on an inventory with no filters set. The following screenshots demonstrate the unexpected behavior:
Here the function returns true, as expected since there are filters set. However, here the function still returns true, despite no slots being filtered. This is the unexpected behavior of concern in this report. Here the function returns false as expected, since chests cannot have filters set.