Set ItemStack in the IInventory again after modifiing

This commit is contained in:
davboecki committed 2014-10-04 13:00:55 +02:00
1 parent 645919daa9
commit 05d1e187f8
1 file changed
+2
@@ -50,6 +50,8 @@ public class InventoryUtils
ItemStack itemstack1 = item.splitStack(size);
if (item.stackSize == 0)
inv.setInventorySlotContents(slot, null);
else
inv.setInventorySlotContents(slot, item);
inv.markDirty();
return itemstack1;