> != >=
This commit is contained in:
parent
5d3371ab3b
commit
5285e1d918
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
||||||
- ItemStack var4 = new ItemStack(var3.getItem().getContainerItem());
|
- ItemStack var4 = new ItemStack(var3.getItem().getContainerItem());
|
||||||
+ ItemStack var4 = var3.getItem().getContainerItemStack(var3);
|
+ ItemStack var4 = var3.getItem().getContainerItemStack(var3);
|
||||||
+
|
+
|
||||||
+ if (var4.isItemStackDamageable() && var4.getItemDamage() > var4.getMaxDamage())
|
+ if (var4.isItemStackDamageable() && var4.getItemDamage() >= var4.getMaxDamage())
|
||||||
+ {
|
+ {
|
||||||
+ MinecraftForge.EVENT_BUS.post(new PlayerDestroyItemEvent(thePlayer, var4));
|
+ MinecraftForge.EVENT_BUS.post(new PlayerDestroyItemEvent(thePlayer, var4));
|
||||||
+ var4 = null;
|
+ var4 = null;
|
||||||
|
|
Loading…
Reference in a new issue