mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 21:15:53 +08:00
Feat: add LaunchWrapper check , fix EventKey
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user