Skip to content

Commit 13bb540

Browse files
Update Main.java
1 parent 4852cfe commit 13bb540

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/CreadoresProgram/ViaProxyNoCommandRun

1 file changed

+1
-1
lines changed

src/main/java/org/CreadoresProgram/ViaProxyNoCommandRun/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public static void main(String[] args){
88
try{
99
File file = new File(System.getProperty("user.dir") + "/ViaProxy.jar");
1010
URL url = file.toURI().toURL();
11-
URLClassLoader child = new URLClassLoader(new URL[] { url }, JarLoader.class.getClassLoader());
11+
URLClassLoader child = new URLClassLoader(new URL[] { url }, Main.class.getClassLoader());
1212
Class<?> classToLoad = Class.forName("net.raphimc.viaproxy.ViaProxy", true, child);
1313
Method method = classToLoad.getDeclaredMethod("main", String[].class);
1414
method.invoke(null, (Object) getArgsVP());

0 commit comments

Comments
 (0)