Nonstandard ItemPrototypeFilter field for prototypes.get_item_filtered

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 525
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Nonstandard ItemPrototypeFilter field for prototypes.get_item_filtered

Post by protocol_1903 »

Normally, when using the API, fields/keys always follow the pattern of lowercase letters with underscores as separators between words. However, for the fuel-category search filter when filtering for item prototypes, the key is "fuel-category" instead of the expected "fuel_category". This is unintuitive and doesn't feel right, as now you need to use {["fuel-category"] = "chemical"} instead of just {fuel_category = "chemical"}. Though this is a breaking change, it's minor enough that I feel it should be done now while 2.1 is still unstable.
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903

Buy me a coffee
Post Reply

Return to “Modding interface requests”