Skip to content

Conversation

@Worive
Copy link

@Worive Worive commented Dec 13, 2025

Make it match NBT


BREAKING: This PR will fix unwanted behavior of the Auto Crafting Bench. But will break crafts relying on mismatching NBT from the original recipe plan and the craft being done. (e.g: Renamed items, enchanted items...)

@Dream-Master Dream-Master added the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Dec 13, 2025
PLASMAchicken added a commit to PLASMAchicken/ProjectRed that referenced this pull request Dec 25, 2025
@PLASMAchicken
Copy link
Member

Did you test https://github.com/GTNewHorizons/Dupes-Exploits-GTNH/issues/220, in my testing it did not fix that Issue ( but the forge microblock one (https://github.com/GTNewHorizons/Dupes-Exploits-GTNH/issues/220#issuecomment-3649333078)?

I made #63 which (in my testing atleast) fixed everything

@Worive
Copy link
Author

Worive commented Dec 28, 2025

Did you test GTNewHorizons/Dupes-Exploits-GTNH#220, in my testing it did not fix that Issue ( but the forge microblock one (GTNewHorizons/Dupes-Exploits-GTNH#220 (comment))?

I made #63 which (in my testing atleast) fixed everything

The target of this PR is the major dupe itself, nothing else. This can still be merged to address it and then from this you implement your rework to fix the rest of issues from project bench and autocrafting bench

And I'm more interested into getting this merged first as it's a quick and simple PR and then from this we can look for your big refactor which will take more time to review and test 👍

Comment on lines +174 to 176
eq.matchNBT = true
eq.matchOre = currentRecipe.isInstanceOf[ShapedOreRecipe] || currentRecipe
.isInstanceOf[ShapelessOreRecipe]
Copy link
Member

@PLASMAchicken PLASMAchicken Dec 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Issue here is that you also need to set matchOre to false, as PamsHarvest craft and many other mods register the recipe as ShapelessOreRecipe ( even when not using any items with OreDict matching in the recipe)

https://github.com/GTNewHorizons/MrTJPCore/blob/cceaed84c98c34eea7d402a15264278fc78a0b0b/src/main/scala/mrtjp/core/item/itemequality.scala#L36-L40

There is an early return for the matchOre

I mean i guess it will fix the forge microblocks thing, as that uses its own RecipeClass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants