Fixed 2 same stacks using capabilities without NBT tag not treated equal, fixes #1606

This commit is contained in:
raoulvdberge
2018-01-18 21:51:15 +01:00
parent 688231cfc8
commit 7365964216
2 changed files with 4 additions and 0 deletions

View File

@@ -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;