diff --git a/src/main/java/zone/rong/mixinbooter/Context.java b/src/main/java/zone/rong/mixinbooter/Context.java index 777050a0..cd367076 100644 --- a/src/main/java/zone/rong/mixinbooter/Context.java +++ b/src/main/java/zone/rong/mixinbooter/Context.java @@ -1,5 +1,6 @@ package zone.rong.mixinbooter; +import net.minecraft.launchwrapper.Launch; import net.minecraftforge.fml.common.Loader; import net.minecraftforge.fml.relauncher.FMLLaunchHandler; @@ -72,7 +73,7 @@ public String mixinConfig() { * @return whether the mod is present */ public boolean isModPresent(String modId) { - return Loader.isModLoaded(modId); + return Launch.classLoader.isClassLoaded("net.minecraftforge.fml.common.Loader") && Loader.isModLoaded(modId); } } \ No newline at end of file