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

Commit

Permalink
prevent godforge load
Browse files Browse the repository at this point in the history
  • Loading branch information
GDCloudstrike committed Mar 24, 2024
1 parent 7a0d054 commit 296623c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public static Materials getOrDefault(String name, Materials def) {
}

public void run() {
new Godforge().run();
// todo: Move those recipes in NHCore
if (NewHorizonsCoreMod.isModLoaded()) {
new Assembler().run();
Expand All @@ -43,6 +42,8 @@ public void run() {
new Crafting().run();
new Extractor().run();
new ResearchStationAssemblyLine().run();
} else {
new Godforge().run();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@
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;
Expand Down Expand Up @@ -2035,21 +2036,25 @@ public void run() {
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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;
Expand Down Expand Up @@ -64,11 +65,15 @@ public void run() {

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");
Expand Down

0 comments on commit 296623c

Please sign in to comment.