mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
Refactor: Compatible with JuiceAgent V3.0 b2
This commit is contained in:
1 parent
f0ebdea5ed
commit
42eaee6040
10 files changed
+10
-9
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user