[2.0.63] .set_filter() inconsistency between loaders and inserters

Bugs that are actually features.
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 247
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

[2.0.63] .set_filter() inconsistency between loaders and inserters

Post by Quezler »

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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15985
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.63] .set_filter() inconsistency between loaders and inserters

Post by Rseding91 »

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.
Post Reply

Return to “Not a bug”