GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
237 stars 178 forks source link

Ore Dictionary Filters do not apply expressions correctly to items with more than one Ore Dict Entry #2154

Open Spool5520 opened 9 months ago

Spool5520 commented 9 months ago

GregTech CEu Version

v2.7.3-beta

Modpack Used

Gregtech Community Pack v1.7.2

Addons Installed

Gregicality Multiblocks v1.2.5

Environment

Singleplayer

New Worlds

Yes

Cross-Mod Interaction

No

Expected Behavior

Ore Dictionary Filter expressions with multiple Ore Dict Entries on a single item should apply expressions to both Entries as whole rather than separately.

EG: item has ore dict entries [ crushedPurifiedTetrahedrite, platinumGroup ] ore dictionary filter expression to allow other crushed ores but not ones that also have the platinumGroup ore dict entry (crushed* & !platinumGroup)

Actual Behavior

screenshot

Purified Tetrahedrite has been added to the platinumGroup ore dict, so now it has both the crushedPurifiedTetrahedrite ore dict and the platinumGroup. Since one of its ore dicts passes the filter expression, its allowed to be extracted.

Steps to Reproduce

Add a second ore dict to an item, try to stop if from being accepted by an Ore Dictionary Filter expression by allowing one ore dict but not the other with the expression: (firstOreDict & !secondOreDict)

Additional Information

No response

serenibyss commented 9 months ago

Effectively is asking for a new button or similar which can toggle between "match any oredict" (current) and "match all oredict"