Skip to content

Commit 9996c85

Browse files
authored
Fix DevLaunch being unable to access the BSL main method for BSL 1.0 and below (#190)
1 parent 8748076 commit 9996c85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/legacy/java/net/neoforged/moddevgradle/internal/LegacyForgeFacade.java

+3
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ public class LegacyForgeFacade {
77
public static void configureRun(Project project, RunModel run) {
88
// This will explicitly be replaced in RunUtils to make this work for IDEs
99
run.getEnvironment().put("MOD_CLASSES", RunUtils.getGradleModFoldersProvider(project, run.getLoadedMods(), null).getClassesArgument());
10+
11+
// 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
12+
run.getJvmArguments().addAll("--add-exports", "cpw.mods.bootstraplauncher/cpw.mods.bootstraplauncher=ALL-UNNAMED");
1013
}
1114
}

0 commit comments

Comments
 (0)