Skip to content

Commit 8e420c6

Browse files
rework the check for decomposition amounts (#4298)
1 parent cb16a76 commit 8e420c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/gregtechceu/gtceu/data/recipe/generated/DecompositionRecipeHandler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ private static void processDecomposition(@NotNull Consumer<FinishedRecipe> provi
3838
(!material.hasFlag(DECOMPOSITION_BY_ELECTROLYZING) &&
3939
!material.hasFlag(DECOMPOSITION_BY_CENTRIFUGING)) ||
4040
// disable decomposition if explicitly disabled for this material or for one of it's components
41-
material.hasFlag(DISABLE_DECOMPOSITION) ||
42-
material.getMaterialComponents().size() > 6)
41+
material.hasFlag(DISABLE_DECOMPOSITION))
4342
return;
4443

4544
List<ItemStack> outputs = new ArrayList<>();
@@ -56,6 +55,8 @@ private static void processDecomposition(@NotNull Consumer<FinishedRecipe> provi
5655
}
5756
}
5857

58+
if (outputs.size() > 6 || fluidOutputs.size() > 6) return;
59+
5960
// only reduce items
6061
boolean hasDust = material.hasProperty(PropertyKey.DUST);
6162
if (hasDust) {

0 commit comments

Comments
 (0)