[2.0.63] .set_filter() inconsistency between loaders and inserters
Posted: Wed Aug 06, 2025 11:31 am
When you set a filter on inserters it does **not** enable the "use filters" checkbox, if you set it on loaders it does enable it.
- new world
- /editor
- place hidden loader
- place an inserter
- run `/c game.player.selected.set_filter(1, {name = "wood"})` on both
- notice the inserter still has the "use filter" checkbox disabled
- notice the loader has the "use filter" checkbox enabled
Expected behavior: you are just setting the filter, the loader should not enable filter mode on its own if its "none", it should need a second api call to LuaEntity::loader_filter_mode just like the inserter would need a second api call to LuaEntity::use_filters.
- new world
- /editor
- place hidden loader
- place an inserter
- run `/c game.player.selected.set_filter(1, {name = "wood"})` on both
- notice the inserter still has the "use filter" checkbox disabled
- notice the loader has the "use filter" checkbox enabled
Expected behavior: you are just setting the filter, the loader should not enable filter mode on its own if its "none", it should need a second api call to LuaEntity::loader_filter_mode just like the inserter would need a second api call to LuaEntity::use_filters.