From 884f7e8fca7364a9472e5551e75ca6642a0cc485 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Fri, 26 Feb 2016 18:44:39 +0100 Subject: [PATCH] Fix inventory slot validation not checking stacksizes correctly --- .../java/org/cyclops/cyclopscore/inventory/SimpleInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cyclops/cyclopscore/inventory/SimpleInventory.java b/src/main/java/org/cyclops/cyclopscore/inventory/SimpleInventory.java index 99e26c931b..01b8e4dc98 100644 --- a/src/main/java/org/cyclops/cyclopscore/inventory/SimpleInventory.java +++ b/src/main/java/org/cyclops/cyclopscore/inventory/SimpleInventory.java @@ -203,7 +203,7 @@ public boolean isItemValidForSlot(int i, ItemStack itemstack) { return true; } int existing = this._contents[i] == null ? 0 : this._contents[i].stackSize; - return existing + itemstack.stackSize >= this.getInventoryStackLimit(); + return existing + itemstack.stackSize <= this.getInventoryStackLimit(); } @Override