Skip to content

Commit

Permalink
fix oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
GlodBlock authored Aug 27, 2022
1 parent 5203127 commit 89ca4b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/glodblock/github/nei/NEIUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static List<OrderStack<?>> compress(List<OrderStack<?>> list) {
if (currentStack.stackSize == 0) continue;
boolean find = false;
for (OrderStack<?> storedStack : comp) {
if (storedStack == null || !(orderStack.getStack() instanceof ItemStack)) continue;
if (storedStack == null || !(storedStack.getStack() instanceof ItemStack)) continue;
ItemStack firstStack = (ItemStack) storedStack.getStack();
boolean areItemStackEqual = firstStack.isItemEqual(currentStack) && ItemStack.areItemStackTagsEqual(firstStack, currentStack);
if (areItemStackEqual && (firstStack.stackSize + currentStack.stackSize) <= firstStack.getMaxStackSize()) {
Expand Down

0 comments on commit 89ca4b8

Please sign in to comment.