mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Merge pull request #27 from davboecki/master
Set ItemStack in the IInventory again after modifiing it.
This commit is contained in:
commit
e570e12e13
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;
|
||||
|
||||
Reference in new issue
Block a user