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.
[2.0.63] .set_filter() inconsistency between loaders and inserters
Re: [2.0.63] .set_filter() inconsistency between loaders and inserters
Thanks for the report however I don't believe this will be changing. You can set the filter mode after writing the filter if you want to force it to one value.
If you want to get ahold of me I'm almost always on Discord.