mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 19:46:34 +01:00
Remove no durability check, thanks @IllusionTheDev
This commit is contained in:
parent
33dc4cba3c
commit
237aa29864
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user