From 4f33caf2586097daa253d76ce996f9fca4e10cc3 Mon Sep 17 00:00:00 2001 From: Alexdoru <57050655+Alexdoru@users.noreply.github.com> Date: Tue, 3 Sep 2024 22:36:50 +0200 Subject: 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 Co-authored-by: Martin Robertz --- src/main/java/tectech/TecTech.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java/tectech/TecTech.java') 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(); -- cgit