Refactor: Compatible with JuiceAgent V3.0 b2

This commit is contained in:
xiaozhou233 committed 2026-04-02 16:13:27 +08:00
1 parent f0ebdea5ed
commit 42eaee6040
10 files changed
+10 -9

No files matched your search

+1 -1
View File
@@ -11,5 +11,5 @@ repositories {
}
dependencies {
compileOnly(files("../libraries/JuiceLoader.jar"))
compileOnly(files("../libraries/JuiceAgent-API-1.4.0+build.1.jar"))
}
@@ -1,7 +1,7 @@
package cn.xiaozhou233.orangex.loader;
import cn.xiaozhou233.juiceloader.JuiceLoader;
import cn.xiaozhou233.juiceagent.api.JuiceAgent;
import java.io.File;
@@ -31,7 +31,7 @@ public class Loader {
// Load OrangeX
File injectionFile = new File(userDir + "/.orangex/OrangeX.jar");
System.out.println("OrangeX Injection: " + injectionFile.getAbsolutePath());
JuiceLoader.AddToClassLoader(injectionFile.getAbsolutePath(), minecraftClassLoader);
JuiceAgent.addToClassLoader(injectionFile.getAbsolutePath(), minecraftClassLoader);
// Start OrangeX
try {