[raiguard][2.0.6] recipe.allowed_module_categories does not respect beacons

User avatar
micromario
Fast Inserter
Fast Inserter
Posts: 116
Joined: Thu Apr 05, 2018 11:53 am
Contact:

[raiguard][2.0.6] recipe.allowed_module_categories does not respect beacons

Post by micromario »

I have modded the `iron-gear-wheel` recipe in the following way:

Code: Select all

data.raw.recipe["iron-gear-wheel"].allowed_module_categories = {"productivity"}
10-18-2024, 13-54-27.png
10-18-2024, 13-54-27.png (247.5 KiB) Viewed 542 times
My expectation is that you could not use speed beacons or green beacons on such a recipe.
Of note: The previous system of `module.limitation` had such expected behavior.

As you can see, the speed beacon effects the recipe:
10-18-2024, 13-56-55.png
10-18-2024, 13-56-55.png (1.22 MiB) Viewed 542 times
Attachments
factorio-current.log
(200.81 KiB) Downloaded 24 times
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 723
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [raiguard][2.0.6] recipe.allowed_module_categories does not respect beacons

Post by raiguard »

I intentionally implemented it this way - module category restrictions only affect what you can put in machines - but I agree that it is probably unintuitive.

I will fix this, but not until after 2.0 launch and bug rush has died down.
Don't forget, you're here forever.
Post Reply

Return to “Assigned”