diff --git a/src/main/java/com/buuz135/functionalstorage/inventory/CompactingInventoryHandler.java b/src/main/java/com/buuz135/functionalstorage/inventory/CompactingInventoryHandler.java index 027af991..0c45dca0 100644 --- a/src/main/java/com/buuz135/functionalstorage/inventory/CompactingInventoryHandler.java +++ b/src/main/java/com/buuz135/functionalstorage/inventory/CompactingInventoryHandler.java @@ -147,7 +147,7 @@ public int getSlotLimit(int slot) { if (isCreative()) return Integer.MAX_VALUE; if (slot == this.slots) return Integer.MAX_VALUE; int total = totalAmount; - if (hasDowngrade()) total = 64 * 9 * 9; + if (hasDowngrade()) total = (slots == 2 ? 64 * 9 : 64 * 9 * 9); return (int) Math.min(Integer.MAX_VALUE, Math.floor( (double) (total * (long) getMultiplier()) / this.resultList.get(slot).getNeeded())); } @@ -155,7 +155,7 @@ public int getSlotLimit(int slot) { public int getSlotLimitBase(int slot) { if (slot == this.slots) return Integer.MAX_VALUE; int total = totalAmount; - if (hasDowngrade()) total = 64 * 9 * 9; + if (hasDowngrade()) total = (slots == 2 ? 64 * 9 : 64 * 9 * 9); return (int) Math.min(Integer.MAX_VALUE, Math.floor(total / this.resultList.get(slot).getNeeded())); }