remove null check as that shouldn't happen anyway
This commit is contained in:
		@@ -21,11 +21,6 @@ public class ItemStackList implements IItemStackList {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public void add(ItemStack stack) {
 | 
					    public void add(ItemStack stack) {
 | 
				
			||||||
        if (stack == null) {
 | 
					 | 
				
			||||||
            // What you doing adding nulls?
 | 
					 | 
				
			||||||
            return;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        for (ItemStack otherStack : stacks.get(stack.getItem())) {
 | 
					        for (ItemStack otherStack : stacks.get(stack.getItem())) {
 | 
				
			||||||
            if (API.instance().getComparer().isEqualNoQuantity(otherStack, stack)) {
 | 
					            if (API.instance().getComparer().isEqualNoQuantity(otherStack, stack)) {
 | 
				
			||||||
                if ((long) otherStack.stackSize + (long) stack.stackSize > Integer.MAX_VALUE) {
 | 
					                if ((long) otherStack.stackSize + (long) stack.stackSize > Integer.MAX_VALUE) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user