Skip to content

Commit

Permalink
Fix inventory slot validation not checking stacksizes correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Feb 26, 2016
1 parent 6a0701c commit 884f7e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 884f7e8

Please sign in to comment.