[2.x] Storage Chest API support for getting/setting quality on its filter
Posted: Fri Oct 25, 2024 12:55 pm
I've been working on some code to set the filter on storage chests and found no option to set the quality setting of the item in the filter.
https://lua-api.factorio.com/latest/cla ... age_filter
Before 2.0, I would set the filter using the item prototype. However, the 2.x API doc does not hint at how to set the quality.
The same applies to reading the current filter. You can see the current LuaObject, but no quality information is provided.
https://lua-api.factorio.com/latest/cla ... age_filter
Before 2.0, I would set the filter using the item prototype. However, the 2.x API doc does not hint at how to set the quality.
Code: Select all
storage_chest.storage_filter = item_prototype