Skip to content

Commit

Permalink
fix no smashing having manual foil recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
TechLord22 committed Jul 4, 2021
1 parent 883860f commit 11bbf1a
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
import static gregtech.api.recipes.RecipeMaps.LATHE_RECIPES;
import static gregtech.api.unification.material.type.DustMaterial.MatFlags.GENERATE_PLATE;
import static gregtech.api.unification.material.type.DustMaterial.MatFlags.NO_SMASHING;
import static gregtech.api.unification.material.type.IngotMaterial.MatFlags.*;
import static gregtech.api.unification.material.type.IngotMaterial.MatFlags.GENERATE_BOLT_SCREW;
import static gregtech.api.unification.material.type.IngotMaterial.MatFlags.GENERATE_DOUBLE_PLATE;
import static gregtech.api.unification.material.type.SolidMaterial.MatFlags.GENERATE_ROD;
import static gregtech.api.unification.material.type.SolidMaterial.MatFlags.MORTAR_GRINDABLE;
import static gregtech.api.unification.ore.OrePrefix.*;
import static gregtech.api.unification.ore.OrePrefix.nugget;
import static gregtech.api.util.DyeUtil.determineDyeColor;

public class PartsRecipeHandler {
Expand Down Expand Up @@ -100,9 +100,10 @@ public static void processScrew(OrePrefix screwPrefix, IngotMaterial material) {
}

public static void processFoil(OrePrefix foilPrefix, IngotMaterial material) {
ModHandler.addShapedRecipe(String.format("foil_%s", material.toString()),
OreDictUnifier.get(foilPrefix, material, 2),
"hP ", 'P', new UnificationEntry(plate, material));
if (!material.hasFlag(NO_SMASHING))
ModHandler.addShapedRecipe(String.format("foil_%s", material.toString()),
OreDictUnifier.get(foilPrefix, material, 2),
"hP ", 'P', new UnificationEntry(plate, material));

if (ConfigHolder.U.machines.enableClusterMill) {
RecipeMaps.CLUSTER_MILL_RECIPES.recipeBuilder().EUt(24).duration((int) material.getAverageMass())
Expand All @@ -116,7 +117,7 @@ public static void processFoil(OrePrefix foilPrefix, IngotMaterial material) {
.output(foilPrefix, material, 4)
.duration((int) material.getAverageMass())
.EUt(24)
.circuitMeta(0)
.circuitMeta(1)
.buildAndRegister();
}
}
Expand Down

0 comments on commit 11bbf1a

Please sign in to comment.