From db7a283c8ed6fc76600917411366c601c89034fe Mon Sep 17 00:00:00 2001 From: Buuz135 Date: Mon, 6 Jun 2022 22:45:14 +0200 Subject: [PATCH] Fixed Flanks pocket storage inserting too much --- .../functionalstorage/inventory/BigInventoryHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java b/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java index faf4b67..e017f4f 100644 --- a/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java +++ b/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java @@ -49,7 +49,7 @@ public abstract class BigInventoryHandler implements IItemHandler, INBTSerializa BigStack bigStack = this.storedStacks.get(slot); int inserted = Math.min(getSlotLimit(slot) - bigStack.getAmount(), stack.getCount()); if (!simulate){ - if (bigStack.getStack().isEmpty()) bigStack.setStack(stack); + if (bigStack.getStack().isEmpty()) bigStack.setStack(ItemHandlerHelper.copyStackWithSize(stack, 64)); bigStack.setAmount(Math.min(bigStack.getAmount() + inserted, getSlotLimit(slot))); onChange(); }