mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 07:47:47 +00:00
Set ItemStack in the IInventory again after modifiing
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user