Merge pull request #32 from GlodBlock/1.7.10

upstreamfix
This commit is contained in:
Yang Xizhi authored and GitHub committed 2022-07-29 20:44:20 +08:00
commit 5ee263e9de
2 files changed
+9 -5

No files matched your search

@@ -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());
}