File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
neoforge/src/main/java/org/embeddedt/modernfix/neoforge/recipe Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ public int hashCode(Ingredient.ItemValue o) {
3535 }
3636
3737 private boolean areComponentsSame (ItemStack a , ItemStack b ) {
38- // Compare using stricter logic than vanilla: require the prototype maps to be identity- equal, and require
38+ // Compare using stricter logic than vanilla: require the prototype maps to be equal, and require
3939 // the values in the patch to also be identity-equal. This works around Neo allowing Holder.Reference objects
4040 // made with the server & client registries to be considered equal.
4141 if (a .getComponents () instanceof PatchedDataComponentMapAccessor aComps && b .getComponents () instanceof PatchedDataComponentMapAccessor bComps ) {
42- if (aComps .mfix$getPrototype () != bComps .mfix$getPrototype ()) {
42+ if (! aComps .mfix$getPrototype (). equals ( bComps .mfix$getPrototype () )) {
4343 return false ;
4444 }
4545 var aPatch = aComps .mfix$getPatch ();
You can’t perform that action at this time.
0 commit comments