Fixed 2 same stacks using capabilities without NBT tag not treated equal, fixes #1606
This commit is contained in:
@@ -42,6 +42,7 @@ public class Comparer implements IComparer {
|
||||
left = stripTags(left.copy());
|
||||
right = stripTags(right.copy());
|
||||
}
|
||||
|
||||
if (!isEqualNBT(left, right)) {
|
||||
return false;
|
||||
}
|
||||
@@ -98,6 +99,8 @@ public class Comparer implements IComparer {
|
||||
return true;
|
||||
} else if (!left.hasTagCompound() && right.hasTagCompound() && right.getTagCompound().hasNoTags()) {
|
||||
return true;
|
||||
} else if (!left.hasTagCompound() && !right.hasTagCompound()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user