Feat: add LaunchWrapper check , fix EventKey

This commit is contained in:
xiaozhou233 committed 2026-08-20 19:26:13 +08:00
1 parent b70cea6a09
commit fa1abcb59d
4 files changed
+12 -1

No files matched your search

@@ -49,4 +49,8 @@ public class Detector {
return DetectorType.UNKNOWN;
}
public static boolean isLaunchWrapper() {
return classExists("net.minecraft.launchwrapper.Launch");
}
}
@@ -26,6 +26,11 @@ public class Loader {
throw new IllegalStateException("Cannot find Minecraft client thread");
}
// Check if LaunchWrapper exists
if (Detector.isLaunchWrapper()){
System.out.println("LaunchWrapper detected");
}
// Get Minecraft ClassLoader
minecraftClassLoader = clientThread.getContextClassLoader();
System.out.println("Minecraft ClassLoader: " + minecraftClassLoader);