Update patches/common/net/minecraft/src/SlotCrafting.java.patch
This commit is contained in:
parent
ce90f7e7f6
commit
322c79f022
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
+ if (var5.isItemStackDamageable() && var5.getItemDamage() > var5.getMaxDamage())
|
+ if (var5.isItemStackDamageable() && var5.getItemDamage() > var5.getMaxDamage())
|
||||||
+ {
|
+ {
|
||||||
+ MinecraftForge.EVENT_BUS.post(new PlayerDestroyItemEvent(thePlayer, var5));
|
+ MinecraftForge.EVENT_BUS.post(new PlayerDestroyItemEvent(thePlayer, var5));
|
||||||
+ var4 = null;
|
+ var5 = null;
|
||||||
+ }
|
+ }
|
||||||
|
|
||||||
- if (!var4.getItem().doesContainerItemLeaveCraftingGrid(var4) || !this.thePlayer.inventory.addItemStackToInventory(var5))
|
- if (!var4.getItem().doesContainerItemLeaveCraftingGrid(var4) || !this.thePlayer.inventory.addItemStackToInventory(var5))
|
||||||
|
|
Loading…
Reference in a new issue