Skip to content

Commit b6d22bb

Browse files
committed
fix
1 parent d034079 commit b6d22bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/gtexpert/integration/deda/recipes/DraconicMaterialsRecipe.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,14 @@ private static int addInputs(@NotNull Material material, @NotNull RecipeBuilder<
316316
// calculate the output amount and add inputs
317317
int outputAmount = 0;
318318
int fluidAmount = 0;
319+
int dustAmount = 0;
319320
for (MaterialStack materialStack : material.getMaterialComponents()) {
320321
final Material msMat = materialStack.material;
321322
final int msAmount = (int) materialStack.amount;
322323

323324
if (msMat.hasProperty(PropertyKey.DUST)) {
325+
if (dustAmount >= 9) return -1; // more than 9 dusts won't fit in the machine
326+
dustAmount++;
324327
builder.input(OrePrefix.dust, msMat, msAmount);
325328
} else if (msMat.hasProperty(PropertyKey.FLUID)) {
326329
if (fluidAmount >= 2) return -1; // more than 2 fluids won't fit in the machine

0 commit comments

Comments
 (0)