Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Fix incorrect extruder recipe voltages for GT++ materials. (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffle authored Sep 24, 2023
1 parent fd8c3b7 commit 1db71cc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
25 changes: 13 additions & 12 deletions src/main/java/gtPlusPlus/core/recipe/RECIPES_General.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.material.ALLOY;
import gtPlusPlus.core.material.ELEMENT;
import gtPlusPlus.core.material.Material;
import gtPlusPlus.core.recipe.common.CI;
import gtPlusPlus.core.util.minecraft.FluidUtils;
import gtPlusPlus.core.util.minecraft.ItemUtils;
Expand Down Expand Up @@ -385,18 +386,18 @@ private static void migratedRecipes() {
generateWireRecipes(ELEMENT.STANDALONE.HYPOGEN);
generateWireRecipes(ELEMENT.STANDALONE.CHRONOMATIC_GLASS);

GT_Materials[] g = new GT_Materials[] { GT_Materials.Staballoy, GT_Materials.Tantalloy60,
GT_Materials.Tantalloy61, GT_Materials.Void, GT_Materials.Potin, GT_Materials.MaragingSteel300,
GT_Materials.MaragingSteel350, GT_Materials.Inconel690, GT_Materials.Inconel792,
GT_Materials.HastelloyX, GT_Materials.TriniumNaquadahCarbonite, };
for (GT_Materials e : g) {
if (e == GT_Materials.Void) {
if (!Thaumcraft.isModLoaded()) {
continue;
}
}
int tVoltageMultiplier = (e.mBlastFurnaceTemp >= 2800) ? 64 : 16;
generatePipeRecipes(e.mDefaultLocalName, e.getMass(), tVoltageMultiplier);
// No Material for void, natch.
if (Thaumcraft.isModLoaded()) {
generatePipeRecipes(GT_Materials.Void.mDefaultLocalName, GT_Materials.Void.getMass(), 16);
}

Material[] gtpp = new Material[] { ALLOY.STABALLOY, ALLOY.TANTALLOY_60, ALLOY.TANTALLOY_61, ALLOY.POTIN,
ALLOY.MARAGING300, ALLOY.MARAGING350, ALLOY.INCONEL_690, ALLOY.INCONEL_792, ALLOY.HASTELLOY_X,
ALLOY.TRINIUM_NAQUADAH_CARBON };

for (Material mat : gtpp) {
// generatePipeRecipes multiplies the voltage multiplier by 8 because ??! reasons.
generatePipeRecipes(mat.getLocalizedName(), mat.getMass(), mat.vVoltageMultiplier / 8);
}

Materials[] h = new Materials[] { Materials.Europium, Materials.Tungsten, Materials.DarkSteel, Materials.Clay,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ private void generateRecipes(final Material material) {
material.getIngot(5),
ItemList.Shape_Extruder_Rotor.get(0),
material.getRotor(1),
200,
60)) {
(int) Math.max(material.getMass() * 5L * 1, 1),
material.vVoltageMultiplier)) {
Logger.WARNING("Extruder Rotor Recipe: " + material.getLocalizedName() + " - Success");
} else {
Logger.WARNING("Extruder Rotor Recipe: " + material.getLocalizedName() + " - Failed");
Expand Down

0 comments on commit 1db71cc

Please sign in to comment.