aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/common/Recipes.java
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2024-08-11 12:51:41 -0700
committerGitHub <noreply@github.com>2024-08-11 15:51:41 -0400
commit5cd813a5405777a6c92b1af03f7439a97e9523f8 (patch)
tree0d81c74463e8401e893862758a411f5d90e45788 /src/main/java/common/Recipes.java
parent7e153794ad1f79afa0014b82593060ffedc54a61 (diff)
downloadGT5-Unofficial-5cd813a5405777a6c92b1af03f7439a97e9523f8.tar.gz
GT5-Unofficial-5cd813a5405777a6c92b1af03f7439a97e9523f8.tar.bz2
GT5-Unofficial-5cd813a5405777a6c92b1af03f7439a97e9523f8.zip
Faster dev boot times (120s --> 80s while profiling) (#2866)
* Faster dev boot times (120s --> 80s while profiling) * Clean up sloppy hard deps and properly gate them behind isModLoaded() checks. * Include CoreTweaks as runtime only non publishable for faster boot as well
Diffstat (limited to 'src/main/java/common/Recipes.java')
-rw-r--r--src/main/java/common/Recipes.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/common/Recipes.java b/src/main/java/common/Recipes.java
index 2560e8dc37..ba8876ff2e 100644
--- a/src/main/java/common/Recipes.java
+++ b/src/main/java/common/Recipes.java
@@ -18,6 +18,7 @@ import common.recipeLoaders.Unpackager;
import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.enums.Materials;
+import gregtech.api.enums.Mods;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
@@ -45,7 +46,9 @@ public class Recipes {
new ResearchableAssemblyLine().run();
new Unpackager().run();
- registerRecipes_Jars();
+ if (Mods.Thaumcraft.isModLoaded()) {
+ registerRecipes_Jars();
+ }
KekzCore.LOGGER.info("Finished registering recipes");
}