@@ -78,9 +78,9 @@ private static void processOre(@NotNull Consumer<FinishedRecipe> provider, @NotN
7878 }
7979
8080 Material byproductMaterial = property .getOreByProduct (0 , material );
81- ItemStack byproductStack = ChemicalHelper .get (gem , byproductMaterial );
81+ ItemStack byproductStack = ChemicalHelper .get (gem , byproductMaterial , property . getByProductMultiplier () );
8282 if (byproductStack .isEmpty ()) {
83- byproductStack = ChemicalHelper .get (dust , byproductMaterial );
83+ byproductStack = ChemicalHelper .get (dust , byproductMaterial , property . getByProductMultiplier () );
8484 }
8585
8686 Material smeltingMaterial = property .getDirectSmeltResult ().isNull () ? material :
@@ -159,9 +159,9 @@ private static void processRawOre(@NotNull Consumer<FinishedRecipe> provider, @N
159159 }
160160
161161 Material byproductMaterial = property .getOreByProduct (0 , material );
162- ItemStack byproductStack = ChemicalHelper .get (gem , byproductMaterial );
162+ ItemStack byproductStack = ChemicalHelper .get (gem , byproductMaterial , property . getByProductMultiplier () );
163163 if (byproductStack .isEmpty ()) {
164- byproductStack = ChemicalHelper .get (dust , byproductMaterial );
164+ byproductStack = ChemicalHelper .get (dust , byproductMaterial , property . getByProductMultiplier () );
165165 }
166166
167167 Material smeltingMaterial = property .getDirectSmeltResult ().isNull () ? material :
@@ -292,15 +292,15 @@ private static void processCrushedOre(@NotNull Consumer<FinishedRecipe> provider
292292 .inputFluids (Water .getFluid (1000 ))
293293 .circuitMeta (1 )
294294 .outputItems (crushedPurifiedOre )
295- .chancedOutput (TagPrefix .dust , byproductMaterial , "1/3" , 0 )
295+ .chancedOutput (TagPrefix .dust , byproductMaterial , property . getByProductMultiplier (), "1/3" , 0 )
296296 .outputItems (TagPrefix .dust , GTMaterials .Stone )
297297 .save (provider );
298298
299299 ORE_WASHER_RECIPES .recipeBuilder ("wash_" + material .getName () + "_crushed_ore_to_purified_ore_distilled" )
300300 .inputItems (crushed , material )
301301 .inputFluids (DistilledWater .getFluid (100 ))
302302 .outputItems (crushedPurifiedOre )
303- .chancedOutput (TagPrefix .dust , byproductMaterial , "1/3" , 0 )
303+ .chancedOutput (TagPrefix .dust , byproductMaterial , property . getByProductMultiplier (), "1/3" , 0 )
304304 .outputItems (TagPrefix .dust , GTMaterials .Stone )
305305 .duration (200 )
306306 .save (provider );
@@ -341,7 +341,7 @@ private static void processCrushedCentrifuged(@NotNull Consumer<FinishedRecipe>
341341 }
342342
343343 ItemStack dustStack = ChemicalHelper .get (dust , material );
344- ItemStack byproductStack = ChemicalHelper .get (dust , property .getOreByProduct (2 , material ), 1 );
344+ ItemStack byproductStack = ChemicalHelper .get (dust , property .getOreByProduct (2 , material ), property . getByProductMultiplier () );
345345
346346 FORGE_HAMMER_RECIPES .recipeBuilder ("hammer_" + material .getName () + "_refined_ore_to_dust" )
347347 .inputItems (crushedRefined , material )
@@ -375,7 +375,7 @@ private static void processCrushedPurified(@NotNull Consumer<FinishedRecipe> pro
375375 ItemStack crushedCentrifugedStack = ChemicalHelper .get (crushedRefined , material );
376376 ItemStack dustStack = ChemicalHelper .get (dustPure , material );
377377 Material byproductMaterial = property .getOreByProduct (1 , material );
378- ItemStack byproductStack = ChemicalHelper .get (dust , byproductMaterial );
378+ ItemStack byproductStack = ChemicalHelper .get (dust , byproductMaterial , property . getByProductMultiplier () );
379379
380380 FORGE_HAMMER_RECIPES .recipeBuilder ("hammer_" + material .getName () + "_crushed_ore_to_dust" )
381381 .inputItems (crushedPurified , material )
@@ -402,16 +402,16 @@ private static void processCrushedPurified(@NotNull Consumer<FinishedRecipe> pro
402402 .recipeBuilder ("centrifuge_" + material .getName () + "_purified_ore_to_refined_ore" )
403403 .inputItems (crushedPurified , material )
404404 .outputItems (crushedCentrifugedStack )
405- .chancedOutput (TagPrefix .dust , byproductMaterial , "1/3" , 0 )
405+ .chancedOutput (TagPrefix .dust , byproductMaterial , property . getByProductMultiplier (), "1/3" , 0 )
406406 .save (provider );
407407 }
408408
409409 if (material .hasProperty (PropertyKey .GEM )) {
410- ItemStack exquisiteStack = ChemicalHelper .get (gemExquisite , material );
411- ItemStack flawlessStack = ChemicalHelper .get (gemFlawless , material );
412- ItemStack gemStack = ChemicalHelper .get (gem , material );
413- ItemStack flawedStack = ChemicalHelper .get (gemFlawed , material );
414- ItemStack chippedStack = ChemicalHelper .get (gemChipped , material );
410+ ItemStack exquisiteStack = ChemicalHelper .get (gemExquisite , material , property . getByProductMultiplier () );
411+ ItemStack flawlessStack = ChemicalHelper .get (gemFlawless , material , property . getByProductMultiplier () );
412+ ItemStack gemStack = ChemicalHelper .get (gem , material , property . getByProductMultiplier () );
413+ ItemStack flawedStack = ChemicalHelper .get (gemFlawed , material , property . getByProductMultiplier () );
414+ ItemStack chippedStack = ChemicalHelper .get (gemChipped , material , property . getByProductMultiplier () );
415415
416416 if (material .hasFlag (HIGH_SIFTER_OUTPUT )) {
417417 GTRecipeBuilder builder = SIFTER_RECIPES
@@ -466,7 +466,7 @@ private static void processDirtyDust(@NotNull Consumer<FinishedRecipe> provider,
466466 .duration ((int ) (material .getMass () * 4 )).EUt (24 );
467467
468468 if (byproduct .hasProperty (PropertyKey .DUST )) {
469- builder .chancedOutput (TagPrefix .dust , byproduct , "1/9" , 0 );
469+ builder .chancedOutput (TagPrefix .dust , byproduct , property . getByProductMultiplier (), "1/9" , 0 );
470470 } else {
471471 builder .outputFluids (byproduct .getFluid (L / 9 ));
472472 }
@@ -499,12 +499,12 @@ private static void processPureDust(@NotNull Consumer<FinishedRecipe> provider,
499499 separatedMaterial .get (separatedMaterial .size () - 1 ).hasProperty (PropertyKey .INGOT )) ? nugget : dust ;
500500
501501 ItemStack separatedStack2 = ChemicalHelper .get (prefix , separatedMaterial .get (separatedMaterial .size () - 1 ),
502- prefix == nugget ? 2 : 1 );
502+ prefix == nugget ? 2 * property . getByProductMultiplier () : property . getByProductMultiplier () );
503503
504504 ELECTROMAGNETIC_SEPARATOR_RECIPES .recipeBuilder ("separate_" + material .getName () + "_pure_dust_to_dust" )
505505 .inputItems (dustPure , material )
506506 .outputItems (dustStack )
507- .chancedOutput (TagPrefix .dust , separatedMaterial .get (0 ), 1000 , 250 )
507+ .chancedOutput (TagPrefix .dust , separatedMaterial .get (0 ), property . getByProductMultiplier (), 1000 , 250 )
508508 .chancedOutput (separatedStack2 , prefix == TagPrefix .dust ? 500 : 2000 ,
509509 prefix == TagPrefix .dust ? 150 : 600 )
510510 .duration (200 ).EUt (24 )
@@ -514,7 +514,7 @@ private static void processPureDust(@NotNull Consumer<FinishedRecipe> provider,
514514 CENTRIFUGE_RECIPES .recipeBuilder ("centrifuge_" + material .getName () + "_pure_dust_to_dust" )
515515 .inputItems (dustPure , material )
516516 .outputItems (dustStack )
517- .chancedOutput (TagPrefix .dust , byproductMaterial , "1/9" , 0 )
517+ .chancedOutput (TagPrefix .dust , byproductMaterial , property . getByProductMultiplier (), "1/9" , 0 )
518518 .duration (100 )
519519 .EUt (5 )
520520 .save (provider );
0 commit comments