Fix nei handler crash (#65)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
This commit is contained in:
czqwqandcopilot-swe-agent[bot] authored and GitHub committed 2026-04-15 14:47:54 -04:00
1 parent a6b64fdea9
commit f264b5dc8b
2 files changed
+5 -4

No files matched your search

@@ -123,8 +123,9 @@ public class GregTech5RecipeProcessor implements IRecipeProcessor {
recipeOutputs.addAll(recipe.getOtherStacks(recipeIndex));
// remove output if it's chance != 10000
recipeOutputs.removeIf(
stack -> stack instanceof FixedPositionedStack && !(((FixedPositionedStack) stack).mChance == 10000
|| ((FixedPositionedStack) stack).mChance <= 0));
stack -> stack instanceof FixedPositionedStack
&& !(((FixedPositionedStack) stack).getChance() == PositionedStack.CHANCE_FULL
|| ((FixedPositionedStack) stack).getChance() <= 0));
return recipeOutputs;
}
return recipeOutputs;