Make isItemStackDamageable() pass the stack to getMaxDamage() to use the Forge version of getMaxDamage().

Fixes display issues with mods using getMaxDamage(ItemStack) instead of the vanilla one. Closes #805
This commit is contained in:
Lex Manos committed 2013-09-30 17:15:18 -07:00
1 parent 4374f67759
commit 68669e2679
1 file changed
+9
@@ -17,6 +17,15 @@
}
/**
@@ -239,7 +240,7 @@
*/
public boolean isItemStackDamageable()
{
- return Item.itemsList[this.itemID].getMaxDamage() > 0;
+ return Item.itemsList[this.itemID].getMaxDamage(this) > 0;
}
public boolean getHasSubtypes()
@@ -252,7 +253,9 @@
*/
public boolean isItemDamaged()