diff --git a/src/main/java/slimeknights/mantle/inventory/SmartItemHandlerSlot.java b/src/main/java/slimeknights/mantle/inventory/SmartItemHandlerSlot.java index b01c75f07..32051668e 100644 --- a/src/main/java/slimeknights/mantle/inventory/SmartItemHandlerSlot.java +++ b/src/main/java/slimeknights/mantle/inventory/SmartItemHandlerSlot.java @@ -12,6 +12,6 @@ public SmartItemHandlerSlot(IItemHandler itemHandler, int index, int xPosition, @Override public int getMaxStackSize(ItemStack stack) { - return getItemHandler().getSlotLimit(getSlotIndex()); + return Math.min(stack.getMaxStackSize(), getItemHandler().getSlotLimit(getSlotIndex())); } }