summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ItemStack.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemStack.java')
-rw-r--r--src/main/java/net/minecraft/server/ItemStack.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java
index 64d53648..eb4f2b30 100644
--- a/src/main/java/net/minecraft/server/ItemStack.java
+++ b/src/main/java/net/minecraft/server/ItemStack.java
@@ -102,7 +102,7 @@ public final class ItemStack {
}
public boolean d() {
- return Item.byId[this.id].e() > 0;
+ return Item.byId[this.id].getMaxDurability() > 0;
}
public boolean usesData() {
@@ -126,7 +126,7 @@ public final class ItemStack {
}
public int i() {
- return Item.byId[this.id].e();
+ return Item.byId[this.id].getMaxDurability();
}
public void damage(int i, Entity entity) {