remove null check as that shouldn't happen anyway

This commit is contained in:
way2muchnoise
2016-10-30 18:04:55 +01:00
parent 130bb06573
commit cc20647cf6

View File

@@ -21,11 +21,6 @@ public class ItemStackList implements IItemStackList {
@Override
public void add(ItemStack stack) {
if (stack == null) {
// What you doing adding nulls?
return;
}
for (ItemStack otherStack : stacks.get(stack.getItem())) {
if (API.instance().getComparer().isEqualNoQuantity(otherStack, stack)) {
if ((long) otherStack.stackSize + (long) stack.stackSize > Integer.MAX_VALUE) {