diff --git a/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java b/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java index ba0a09b..49bf12e 100644 --- a/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java +++ b/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java @@ -91,7 +91,7 @@ public abstract class BigInventoryHandler implements IItemHandler, INBTSerializa @Override public int getSlotLimit(int slot) { if (hasDowngrade()) return 64; - return Math.min(Integer.MAX_VALUE, type.getSlotAmount() * getMultiplier()); + return (int) Math.min(Integer.MAX_VALUE, type.getSlotAmount() * (long) getMultiplier()); } @Override