diff options
author | GDCloud <93287602+GDCloudstrike@users.noreply.github.com> | 2024-03-24 02:17:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 02:17:37 +0100 |
commit | f371447b4c53de834ce8190a300c32eef78afe0b (patch) | |
tree | 3819479e9b20a5bd89c607c6b8d06dff92d1ef48 /src/main | |
parent | 7a0d0542bfab40061f4f8d37866048657b8415cc (diff) | |
download | GT5-Unofficial-f371447b4c53de834ce8190a300c32eef78afe0b.tar.gz GT5-Unofficial-f371447b4c53de834ce8190a300c32eef78afe0b.tar.bz2 GT5-Unofficial-f371447b4c53de834ce8190a300c32eef78afe0b.zip |
prevent godforge load (#278)
Diffstat (limited to 'src/main')
3 files changed, 31 insertions, 20 deletions
diff --git a/src/main/java/com/github/technus/tectech/loader/recipe/BaseRecipeLoader.java b/src/main/java/com/github/technus/tectech/loader/recipe/BaseRecipeLoader.java index e9df999e87..3c75b38465 100644 --- a/src/main/java/com/github/technus/tectech/loader/recipe/BaseRecipeLoader.java +++ b/src/main/java/com/github/technus/tectech/loader/recipe/BaseRecipeLoader.java @@ -34,7 +34,6 @@ public class BaseRecipeLoader { } public void run() { - new Godforge().run(); // todo: Move those recipes in NHCore if (NewHorizonsCoreMod.isModLoaded()) { new Assembler().run(); @@ -43,6 +42,8 @@ public class BaseRecipeLoader { new Crafting().run(); new Extractor().run(); new ResearchStationAssemblyLine().run(); + } else { + new Godforge().run(); } } } diff --git a/src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java b/src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java index 564c596086..ee4f8dbfd5 100644 --- a/src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java +++ b/src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java @@ -296,6 +296,7 @@ import static com.github.technus.tectech.thing.CustomItemList.hatch_CreativeUnce import static com.github.technus.tectech.thing.CustomItemList.holder_Hatch; import static com.github.technus.tectech.thing.CustomItemList.rack_Hatch; import static com.github.technus.tectech.util.CommonValues.V; +import static gregtech.api.enums.Mods.NewHorizonsCoreMod; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; @@ -2035,21 +2036,25 @@ public class MachineLoader implements Runnable { Machine_Multi_EyeOfHarmony.set( new GT_MetaTileEntity_EM_EyeOfHarmony(15410, "multimachine.em.eye_of_harmony", "Eye of Harmony") .getStackForm(1L)); - Machine_Multi_ForgeOfGods.set( - new GT_MetaTileEntity_EM_ForgeOfGods(15411, "multimachine.em.forge_of_gods", "Forge of the Gods") - .getStackForm(1L)); - Machine_Multi_SmeltingModule.set( - new GT_MetaTileEntity_EM_SmeltingModule(15412, "multimachine.em.smelting_module", "Smelting Module") - .getStackForm(1L)); - Machine_Multi_MoltenModule.set( - new GT_MetaTileEntity_EM_MoltenModule(15413, "multimachine.em.molten_module", "Molten Module") - .getStackForm(1L)); - Machine_Multi_PlasmaModule.set( - new GT_MetaTileEntity_EM_PlasmaModule(15414, "multimachine.em.plasma_module", "Plasma Module") - .getStackForm(1L)); - Machine_Multi_QuarkGluonPlasmaModule.set( - new GT_MetaTileEntity_EM_ExoticModule(15415, "multimachine.em.exotic_module", "Exotic Matter Module") - .getStackForm(1L)); + if (!NewHorizonsCoreMod.isModLoaded()) { + Machine_Multi_ForgeOfGods.set( + new GT_MetaTileEntity_EM_ForgeOfGods(15411, "multimachine.em.forge_of_gods", "Forge of the Gods") + .getStackForm(1L)); + Machine_Multi_SmeltingModule.set( + new GT_MetaTileEntity_EM_SmeltingModule(15412, "multimachine.em.smelting_module", "Smelting Module") + .getStackForm(1L)); + Machine_Multi_MoltenModule.set( + new GT_MetaTileEntity_EM_MoltenModule(15413, "multimachine.em.molten_module", "Molten Module") + .getStackForm(1L)); + Machine_Multi_PlasmaModule.set( + new GT_MetaTileEntity_EM_PlasmaModule(15414, "multimachine.em.plasma_module", "Plasma Module") + .getStackForm(1L)); + Machine_Multi_QuarkGluonPlasmaModule.set( + new GT_MetaTileEntity_EM_ExoticModule( + 15415, + "multimachine.em.exotic_module", + "Exotic Matter Module").getStackForm(1L)); + } // =================================================================================================== // Hatches diff --git a/src/main/java/com/github/technus/tectech/loader/thing/ThingsLoader.java b/src/main/java/com/github/technus/tectech/loader/thing/ThingsLoader.java index eaec6574e1..11e4415080 100644 --- a/src/main/java/com/github/technus/tectech/loader/thing/ThingsLoader.java +++ b/src/main/java/com/github/technus/tectech/loader/thing/ThingsLoader.java @@ -2,6 +2,7 @@ package com.github.technus.tectech.loader.thing; import static com.github.technus.tectech.Reference.MODID; import static com.github.technus.tectech.TecTech.tectechTexturePage1; +import static gregtech.api.enums.Mods.NewHorizonsCoreMod; import com.github.technus.tectech.TecTech; import com.github.technus.tectech.thing.block.GodforgeGlassBlock; @@ -64,11 +65,15 @@ public class ThingsLoader implements Runnable { TT_Container_Casings.StabilisationFieldGenerators = new StabilisationFieldCasing(); - TT_Container_Casings.GodforgeCasings = new GodforgeCasings(); - TecTech.LOGGER.info("Godforge blocks registered."); + if (!NewHorizonsCoreMod.isModLoaded()) { - GodforgeGlassBlock.run(); - TecTech.LOGGER.info("Godforge Glass registered"); + TT_Container_Casings.GodforgeCasings = new GodforgeCasings(); + TecTech.LOGGER.info("Godforge blocks registered."); + + GodforgeGlassBlock.run(); + TecTech.LOGGER.info("Godforge Glass registered"); + + } QuantumGlassBlock.run(); TecTech.LOGGER.info("Quantum Glass registered"); |