diff options
author | Alexdoru <57050655+Alexdoru@users.noreply.github.com> | 2024-09-03 22:36:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 20:36:50 +0000 |
commit | 4f33caf2586097daa253d76ce996f9fca4e10cc3 (patch) | |
tree | ea3a8ee2baf4c5aebdd1700b940f2373e475f626 /src/main/java/tectech/TecTech.java | |
parent | a881bdb42c695433174342125696213e582e78fc (diff) | |
download | GT5-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.java | 5 |
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(); |