When switching a recipe with a module present in an assembling machine to one with a allowed_module_categories restriction, the game doesn't check if current modules are valid for the new recipes
sample data.lua code:
data.raw.recipe['iron-stick'].allowed_module_categories = {"speed"}
1. place crafting machine 3 and set the crafting recipe to iron gear wheel
2. insert efficiency module
3. switch recipe to iron stick
4. efficiency module stays in
[boskid][2.0.5] filtering using allowed_module_categories does not remove invalid modules
-
- Burner Inserter
- Posts: 6
- Joined: Fri Oct 18, 2024 9:48 am
- Contact:
[boskid][2.0.5] filtering using allowed_module_categories does not remove invalid modules
- Attachments
-
- 1.png (451.28 KiB) Viewed 275 times
Re: [boskid][2.0.5] filtering using allowed_module_categories does not remove invalid modules
Thanks for the report. Issue is now fixed for 2.0.6
-
- Burner Inserter
- Posts: 6
- Joined: Fri Oct 18, 2024 9:48 am
- Contact:
Re: [boskid][2.0.5] filtering using allowed_module_categories does not remove invalid modules
Thanks. I also found another bug related to the report, it looks like beacons ignore the allowed_module_categories field on both recipes and crafting machines