mirror of
https://github.com/GTNewHorizons/NotEnoughEnergistics.git
synced 2026-11-17 10:55:07 +00:00
Fix nei handler crash (#65)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user