Skip to content

Commit

Permalink
Fix reslocs for several autogenerated recipes (#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rundas01 authored Sep 1, 2024
1 parent 0cc61ab commit a52bf75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static void init(Consumer<FinishedRecipe> provider) {

public static void processDust(TagPrefix dustPrefix, Material mat, DustProperty property,
Consumer<FinishedRecipe> provider) {
String id = "%s_%s_".formatted(FormattingUtil.toLowerCaseUnder(dustPrefix.name),
String id = "%s_%s".formatted(FormattingUtil.toLowerCaseUnder(dustPrefix.name),
mat.getName().toLowerCase(Locale.ROOT));
ItemStack dustStack = ChemicalHelper.get(dustPrefix, mat);
OreProperty oreProperty = mat.hasProperty(PropertyKey.ORE) ? mat.getProperty(PropertyKey.ORE) : null;
Expand Down Expand Up @@ -137,7 +137,7 @@ public static void processDust(TagPrefix dustPrefix, Material mat, DustProperty
// smelting magnetic dusts is handled elsewhere
if (!mat.hasFlag(IS_MAGNETIC)) {
// do not register inputs by ore dict here. Let other mods register their own dust -> ingots
VanillaRecipeHelper.addSmeltingRecipe(provider, id + "_demagnetize_from_dust",
VanillaRecipeHelper.addSmeltingRecipe(provider, "smelt_" + id + "_to_ingot",
ChemicalHelper.getTag(dustPrefix, mat), ingotStack);
}
} else {
Expand Down Expand Up @@ -165,7 +165,7 @@ public static void processDust(TagPrefix dustPrefix, Material mat, DustProperty
if (smeltingResult != null) {
ItemStack ingotStack = ChemicalHelper.get(ingot, smeltingResult);
if (!ingotStack.isEmpty()) {
VanillaRecipeHelper.addSmeltingRecipe(provider, id + "_dust_to_ingot",
VanillaRecipeHelper.addSmeltingRecipe(provider, "smelt_" + id + "_to_ingot",
ChemicalHelper.getTag(dustPrefix, mat), ingotStack);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static void processOre(TagPrefix orePrefix, Material material, OrePropert
String prefixString = orePrefix == ore ? "" : orePrefix.name + "_";
if (!crushedStack.isEmpty()) {
GTRecipeBuilder builder = MACERATOR_RECIPES
.recipeBuilder("macerate_" + prefixString + material.getName() + "_ore_to_raw_ore")
.recipeBuilder("macerate_" + prefixString + material.getName() + "_ore_to_crushed_ore")
.inputItems(IntersectionIngredient.of(Ingredient.of(orePrefix.getItemTags(material)[0]),
Ingredient.of(orePrefix.getItemParentTags()[0])))
.outputItems(GTUtil.copyAmount(amountOfCrushedOre * 2 * oreTypeMultiplier, crushedStack))
Expand Down Expand Up @@ -223,12 +223,12 @@ public static void processRawOre(TagPrefix orePrefix, Material material, OreProp
ChemicalHelper.get(rawOre, material, 9),
ChemicalHelper.getTag(rawOreBlock, material));
}
COMPRESSOR_RECIPES.recipeBuilder("compress_" + material.getName() + "to_ore_block")
COMPRESSOR_RECIPES.recipeBuilder("compress_" + material.getName() + "_to_ore_block")
.inputItems(rawOre, material, 9)
.outputItems(rawOreBlock, material)
.duration(300).EUt(2).save(provider);

FORGE_HAMMER_RECIPES.recipeBuilder("decompress_" + material.getName() + "to_raw_ore")
FORGE_HAMMER_RECIPES.recipeBuilder("decompress_" + material.getName() + "_to_raw_ore")
.inputItems(rawOreBlock, material)
.outputItems(rawOre, material, 9)
.circuitMeta(2)
Expand Down

0 comments on commit a52bf75

Please sign in to comment.