aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/tectech/TecTech.java
diff options
context:
space:
mode:
authorAlexdoru <57050655+Alexdoru@users.noreply.github.com>2024-09-03 22:36:50 +0200
committerGitHub <noreply@github.com>2024-09-03 20:36:50 +0000
commit4f33caf2586097daa253d76ce996f9fca4e10cc3 (patch)
treeea3a8ee2baf4c5aebdd1700b940f2373e475f626 /src/main/java/tectech/TecTech.java
parenta881bdb42c695433174342125696213e582e78fc (diff)
downloadGT5-Unofficial-4f33caf2586097daa253d76ce996f9fca4e10cc3.tar.gz
GT5-Unofficial-4f33caf2586097daa253d76ce996f9fca4e10cc3.tar.bz2
GT5-Unofficial-4f33caf2586097daa253d76ce996f9fca4e10cc3.zip
replace Loader.isModLoaded() calls with Mods enum cached call (#3031)
* replace Loader.isModLoaded() calls with Mods enum cached call * prevent Loader.isModLoaded calls * Revert "prevent Loader.isModLoaded calls" This reverts commit 9df23fd8db9dfe70a16be10e1d8688ee629da054. * no Loader.isModLoaded calls in gagreg --------- Co-authored-by: boubou19 <miisterunknown@gmail.com> Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/tectech/TecTech.java')
-rw-r--r--src/main/java/tectech/TecTech.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/tectech/TecTech.java b/src/main/java/tectech/TecTech.java
index 503f6ff35c..4f3dc3428d 100644
--- a/src/main/java/tectech/TecTech.java
+++ b/src/main/java/tectech/TecTech.java
@@ -1,7 +1,5 @@
package tectech;
-import static gregtech.api.enums.Mods.COFHCore;
-
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.FMLCommonHandler;
@@ -13,6 +11,7 @@ import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import eu.usrv.yamcore.auxiliary.IngameErrorLog;
import eu.usrv.yamcore.auxiliary.LogHelper;
+import gregtech.api.enums.Mods;
import gregtech.api.objects.XSTR;
import tectech.loader.MainLoader;
import tectech.loader.TecTechConfig;
@@ -95,7 +94,7 @@ public class TecTech {
@Mod.EventHandler
@SuppressWarnings("unused")
public void Load(FMLInitializationEvent event) {
- hasCOFH = COFHCore.isModLoaded();
+ hasCOFH = Mods.COFHCore.isModLoaded();
MainLoader.load();
MainLoader.addAfterGregTechPostLoadRunner();