Skip to content

Commit

Permalink
Add back loadExternalFileSystems
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3-M4513R committed Jan 20, 2024
1 parent a1f0566 commit e7c1363
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ configurations {

dependencies {
compileOnly 'org.jetbrains:annotations:23.0.0'
implementation 'org.kettingpowered:kettingcommon:2.1.0'
implementation 'org.kettingpowered:kettingcommon:2.1.2'
implementation 'com.google.code.gson:gson:2.10.1' //Used in Patcher
implementation 'me.tongfei:progressbar:0.10.0' //Used to display progress
transitive 'org.jline:jline-reader:3.21.0' //needed for progressbar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ void launch() throws Exception {
downloadMCP.join();
if (Patcher.checkUpdateNeeded()) new Patcher();

JavaHacks.clearReservedIdentifiers();
Arrays.stream(libs.getLoadedLibs())
.map(url-> {
try {
Expand All @@ -343,14 +344,13 @@ void launch() throws Exception {
throw new RuntimeException(e);
}
}).forEach(jarFile -> Main.INST.appendToSystemClassLoaderSearch(jarFile));

JavaHacks.loadExternalFileSystems(KettingLauncher.class.getClassLoader());


System.out.println("Launching Ketting...");
final List<String> arg_list = new ArrayList<>(args.args());
arg_list.add("--launchTarget");
arg_list.add(args.launchTarget());
JavaHacks.clearReservedIdentifiers();

Class.forName("net.minecraftforge.bootstrap.ForgeBootstrap", true, KettingLauncher.class.getClassLoader())
.getMethod("main", String[].class)
Expand Down

0 comments on commit e7c1363

Please sign in to comment.