Remove no durability check, thanks @IllusionTheDev

This commit is contained in:
PikaMug 2024-08-03 00:50:03 -04:00
parent 33dc4cba3c
commit 237aa29864
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class LegacyBlockItemStack implements BlockItemStack {
}
final MaterialData blockData = Factory.getBlockData(other);
return this.materialData.equals(blockData) && (getDurability() == 0 || getDurability() == other.getDurability());
return this.materialData.equals(blockData) && (getDurability() == other.getDurability());
}
public void setAmount(int amount) {

View File

@ -71,7 +71,7 @@ public class ModernBlockItemStack implements BlockItemStack {
}
final BlockData blockData = Factory.getBlockData(other);
return this.blockData.matches(blockData) && (durability == 0 || durability == other.getDurability());
return this.blockData.matches(blockData) && (durability == other.getDurability());
}
public void setAmount(int amount) {