From a64df3adf9ef4025d09326ebf78d92bf0bf3a6dc Mon Sep 17 00:00:00 2001 From: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com> Date: Sun, 12 Feb 2023 17:29:37 +0000 Subject: Fix some EOH stuff --- .../technus/tectech/recipe/EyeOfHarmonyRecipe.java | 6 +++--- .../multi/GT_MetaTileEntity_EM_EyeOfHarmony.java | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java index 074163d9ae..99f25832eb 100644 --- a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java +++ b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java @@ -145,12 +145,12 @@ public class EyeOfHarmonyRecipe { // Tier 8 - 576 Universium // Tier 9 - 2304 Universium - if (rocketTierOfRecipe <= 3) { + if (rocketTierOfRecipe <= 2) { fluidStackArrayList.add(Materials.WhiteDwarfMatter.getMolten(576L * pow(4, (int) rocketTierOfRecipe))); } - if ((4 <= rocketTierOfRecipe) && (rocketTierOfRecipe <= 7)) { - fluidStackArrayList.add(Materials.BlackDwarfMatter.getMolten(576L * pow(4, (int) rocketTierOfRecipe - 4))); + if ((3 <= rocketTierOfRecipe) && (rocketTierOfRecipe <= 7)) { + fluidStackArrayList.add(Materials.BlackDwarfMatter.getMolten(576L * pow(4, (int) rocketTierOfRecipe - 3))); } if (rocketTierOfRecipe >= 8) { diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java index 51cfa1745f..8183ca8404 100644 --- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java +++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java @@ -58,7 +58,7 @@ import gregtech.common.tileentities.machines.GT_MetaTileEntity_Hatch_Output_ME; public class GT_MetaTileEntity_EM_EyeOfHarmony extends GT_MetaTileEntity_MultiblockBase_EM implements IConstructable, IGlobalWirelessEnergy, ISurvivalConstructable { - private static final boolean EOH_DEBUG_MODE = false; + private static final boolean EOH_DEBUG_MODE = true; private boolean disableAnimation = false; // Region variables. @@ -1008,14 +1008,6 @@ public class GT_MetaTileEntity_EM_EyeOfHarmony extends GT_MetaTileEntity_Multibl currentRecipe = eyeOfHarmonyRecipeStorage.recipeLookUp(aStack); if (processRecipe(currentRecipe)) { - // Get circuit damage, clamp it and then use it later for overclocking. - ItemStack circuit = mInputBusses.get(0).getStackInSlot(0); - if (circuit != null) { - currentCircuitMultiplier = Math.max(0, Math.min(circuit.getItemDamage(), 24)); - } else { - currentCircuitMultiplier = 0; - } - return true; } @@ -1034,6 +1026,14 @@ public class GT_MetaTileEntity_EM_EyeOfHarmony extends GT_MetaTileEntity_Multibl public boolean processRecipe(EyeOfHarmonyRecipe recipeObject) { + // Get circuit damage, clamp it and then use it later for overclocking. + ItemStack circuit = mInputBusses.get(0).getStackInSlot(0); + if (circuit != null) { + currentCircuitMultiplier = (long) clamp(circuit.getItemDamage(), 0, 24); + } else { + currentCircuitMultiplier = 0; + } + // Debug mode, overwrites the required fluids to initiate the recipe to 100L of each. if (EOH_DEBUG_MODE) { if ((getHydrogenStored() < 100) || (getHeliumStored() < 100)) { -- cgit