Skip to content

Commit

Permalink
Fix DevLaunch being unable to access the BSL main method for BSL 1.0 …
Browse files Browse the repository at this point in the history
…and below (#190)
  • Loading branch information
shartte authored Dec 2, 2024
1 parent 8748076 commit 9996c85
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ public class LegacyForgeFacade {
public static void configureRun(Project project, RunModel run) {
// This will explicitly be replaced in RunUtils to make this work for IDEs
run.getEnvironment().put("MOD_CLASSES", RunUtils.getGradleModFoldersProvider(project, run.getLoadedMods(), null).getClassesArgument());

// Old BSL versions before 2022 (i.e. on 1.18.2) did not export any packages, causing DevLaunch to be unable to access the main method
run.getJvmArguments().addAll("--add-exports", "cpw.mods.bootstraplauncher/cpw.mods.bootstraplauncher=ALL-UNNAMED");
}
}

0 comments on commit 9996c85

Please sign in to comment.