diff --git a/src/main/java/vazkii/botania/common/core/helper/InventoryHelper.java b/src/main/java/vazkii/botania/common/core/helper/InventoryHelper.java index 745fefb18..d553eda94 100644 --- a/src/main/java/vazkii/botania/common/core/helper/InventoryHelper.java +++ b/src/main/java/vazkii/botania/common/core/helper/InventoryHelper.java @@ -84,7 +84,7 @@ public class InventoryHelper { } int i = 0; - int[] attemptSlots = new int[0]; + int[] attemptSlots; if(inventory instanceof ISidedInventory && side != ForgeDirection.UNKNOWN) { attemptSlots = ((ISidedInventory)inventory).getAccessibleSlotsFromSide(side.ordinal()); @@ -127,7 +127,7 @@ public class InventoryHelper { inventory.getSizeInventory(); int itemSizeCounter = item.stackSize; - int[] availableSlots = new int[0]; + int[] availableSlots; if(inventory instanceof ISidedInventory) availableSlots = ((ISidedInventory) inventory).getAccessibleSlotsFromSide(side.ordinal());