mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
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:
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()
|
||||
|
||||
Reference in new issue
Block a user