Skip to content

Commit 5a08bff

Browse files
committed
Revert classloading "fix"
1 parent 2c9d3aa commit 5a08bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public static void dynamicLoadJar(String fileName) throws IOException {
190190
Method method = sysclass.getDeclaredMethod("addURL", URL.class);
191191

192192
method.setAccessible(true);
193-
method.invoke(sysloader, sysloader.getResource("minecraft_server.jar"));
193+
method.invoke(sysloader, (new File(fileName)).toURI().toURL());
194194
} catch (Exception ex) {
195195
log.log(Level.SEVERE, "Could not add URL to class loader", ex);
196196
System.exit(1);

0 commit comments

Comments
 (0)