aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorboubou19 <miisterunknown@gmail.com>2023-04-10 15:47:13 +0200
committerboubou19 <miisterunknown@gmail.com>2023-04-10 15:47:13 +0200
commit3b8e8779d06b30d94e304d0df0263919c868fb13 (patch)
treea262f6acdbe6456f0f551f105facf4e1b64bf483
parent93c8ce95e02d26ecfec90ec1930e4abe27bb4d65 (diff)
downloadGT5-Unofficial-3b8e8779d06b30d94e304d0df0263919c868fb13.tar.gz
GT5-Unofficial-3b8e8779d06b30d94e304d0df0263919c868fb13.tar.bz2
GT5-Unofficial-3b8e8779d06b30d94e304d0df0263919c868fb13.zip
fix crash in dev
-rw-r--r--src/main/java/com/github/technus/tectech/loader/recipe/BaseRecipeLoader.java19
1 files changed, 12 insertions, 7 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 cb18e19cd8..75094600b7 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
@@ -1,6 +1,8 @@
package com.github.technus.tectech.loader.recipe;
+import static com.github.technus.tectech.TecTech.LOGGER;
import static gregtech.api.enums.Mods.GTPlusPlus;
+import static gregtech.api.enums.Mods.NewHorizonsCoreMod;
import com.github.technus.tectech.compatibility.gtpp.GtppAtomLoader;
import com.github.technus.tectech.mechanics.elementalMatter.core.transformations.EMTransformationRegistry;
@@ -22,7 +24,7 @@ public class BaseRecipeLoader {
try {
CUSTOM_ITEM_LIST = Class.forName("com.dreammaster.gthandler.CustomItemList");
} catch (Exception e) {
- throw new Error(e);
+ LOGGER.error("NHCoreMod not present. Disabling all the recipes");
}
}
@@ -43,13 +45,16 @@ public class BaseRecipeLoader {
if (GTPlusPlus.isModLoaded()) {
new GtppAtomLoader().setTransformations(transformationInfo);
}
+ // todo: Move those recipes in NHCore
+ if (NewHorizonsCoreMod.isModLoaded()) {
+ new Assembler().run();
+ new AssemblyLine().run();
+ new CircuitAssembler().run();
+ new Crafting().run();
+ new Extractor().run();
+ new ResearchStationAssemblyLine().run();
+ }
- new Assembler().run();
- new AssemblyLine().run();
- new CircuitAssembler().run();
- new Crafting().run();
- new Extractor().run();
new MachineEMBehaviours();
- new ResearchStationAssemblyLine().run();
}
}