Update patches/common/net/minecraft/src/SlotCrafting.java.patch

This commit is contained in:
pahimar 2012-10-26 12:26:16 -03:00
parent ce90f7e7f6
commit 322c79f022

View file

@ -19,7 +19,7 @@
+ if (var5.isItemStackDamageable() && var5.getItemDamage() > var5.getMaxDamage())
+ {
+ MinecraftForge.EVENT_BUS.post(new PlayerDestroyItemEvent(thePlayer, var5));
+ var4 = null;
+ var5 = null;
+ }
- if (!var4.getItem().doesContainerItemLeaveCraftingGrid(var4) || !this.thePlayer.inventory.addItemStackToInventory(var5))