mirror of
https://github.com/GTNewHorizons/NotEnoughEnergistics.git
synced 2026-11-17 10:55:07 +00:00
Fix GT pattern transfer dropping chance outputs (#72)
This commit is contained in:
1 parent
7d9e40d0ef
commit
6ae5459a0e
1 file changed
-6
@@ -20,7 +20,6 @@ import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.recipe.IRecipeHandler;
|
||||
import gregtech.api.enums.ItemList;
|
||||
import gregtech.api.recipe.RecipeCategory;
|
||||
import gregtech.nei.GTNEIDefaultHandler.FixedPositionedStack;
|
||||
|
||||
/**
|
||||
* @author vfyjxf
|
||||
@@ -121,11 +120,6 @@ public class GregTech5RecipeProcessor implements IRecipeProcessor {
|
||||
List<PositionedStack> recipeOutputs = new ArrayList<>();
|
||||
if (canProcessRecipe(recipe)) {
|
||||
recipeOutputs.addAll(recipe.getOtherStacks(recipeIndex));
|
||||
// remove output if it's chance != 10000
|
||||
recipeOutputs.removeIf(
|
||||
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