Fix: Obfuscation check

This commit is contained in:
xiaozhou233 committed 2026-08-19 22:16:39 +08:00
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());