mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 21:15:53 +08:00
Fix: Obfuscation check
This commit is contained in:
1 parent
864a70dbcc
commit
90a209b54a
1 file changed
+6
-3
@@ -32,20 +32,23 @@ public class Loader {
|
||||
// Check Obfuscation
|
||||
// Only Check MCP or Vanilla Obfuscation
|
||||
try {
|
||||
Class.forName("net.minecraft.client.Minecraft");
|
||||
} catch (ClassNotFoundException e) {
|
||||
Class.forName("ave");
|
||||
System.out.println("Obfuscation detected");
|
||||
|
||||
// Load JuiceRemapper Native
|
||||
System.load(new File(userDir, "/.orangex/libremapper.dll").getAbsolutePath());
|
||||
|
||||
JuiceRemapper.init();
|
||||
JuiceRemapper.addInclude("cn/xiaozhou233/orangex/");
|
||||
JuiceRemapper.addExclude("cn/xiaozhou233/orangex/mixin");
|
||||
} catch (ClassNotFoundException e) {
|
||||
System.out.println("Obfuscation not detected");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Load OrangeX
|
||||
File injectionFile = new File(userDir + "/.orangex/OrangeX.jar");
|
||||
System.out.println("OrangeX Injection: " + injectionFile.getAbsolutePath());
|
||||
|
||||
Reference in new issue
Block a user