ignore stack size 0

This commit is contained in:
GlodBlock committed 2022-07-29 20:39:34 +08:00
1 parent 411ec67624
commit e8133a8522
1 file changed
+2
@@ -45,6 +45,8 @@ public class NEIUtils {
int upper = 0;
for (OrderStack<?> orderStack : list) {
if (orderStack != null && orderStack.getStack() != null) {
if (orderStack.getStack() instanceof ItemStack && ((ItemStack) orderStack.getStack()).stackSize == 0)
continue;
map.put(orderStack.getIndex(), orderStack.getStack());
upper = Math.max(upper, orderStack.getIndex());
}