Fix: Env arg INST_NEOFORGE is missing in custom commands. (#2723)

This commit is contained in:
Burning_TNT
2024-02-01 22:59:17 +08:00
committed by GitHub
parent c26eb2bc69
commit 4c41f25314
7 changed files with 9 additions and 0 deletions

View File

@@ -503,6 +503,9 @@ public class DefaultLauncher extends Launcher {
if (analyzer.has(LibraryAnalyzer.LibraryType.FORGE)) {
env.put("INST_FORGE", "1");
}
if (analyzer.has(LibraryAnalyzer.LibraryType.NEO_FORGE)) {
env.put("INST_NEOFORGE", "1");
}
if (analyzer.has(LibraryAnalyzer.LibraryType.LITELOADER)) {
env.put("INST_LITELOADER", "1");
}