Quilt 相关功能完善 (#2035)
* Quilt 相关功能完善 - Mcbbs 整合包适配 Quilt - 自定义命令支持 Quilt 环境变量 - 顺便把语言文件内的机翻错误“\:”修复 * Fix --------- Co-authored-by: Yuhui Huang <i@huangyuhui.net>
This commit is contained in:
@@ -495,6 +495,9 @@ public class DefaultLauncher extends Launcher {
|
||||
if (analyzer.has(LibraryAnalyzer.LibraryType.OPTIFINE)) {
|
||||
env.put("INST_OPTIFINE", "1");
|
||||
}
|
||||
if (analyzer.has(LibraryAnalyzer.LibraryType.QUILT)) {
|
||||
env.put("INST_QUILT", "1");
|
||||
}
|
||||
return env;
|
||||
}
|
||||
|
||||
|
||||
@@ -97,6 +97,8 @@ public class McbbsModpackExportTask extends Task<Void> {
|
||||
addons.add(new McbbsModpackManifest.Addon(OPTIFINE.getPatchId(), optifineVersion)));
|
||||
analyzer.getVersion(FABRIC).ifPresent(fabricVersion ->
|
||||
addons.add(new McbbsModpackManifest.Addon(FABRIC.getPatchId(), fabricVersion)));
|
||||
analyzer.getVersion(QUILT).ifPresent(quiltVersion ->
|
||||
addons.add(new McbbsModpackManifest.Addon(QUILT.getPatchId(), quiltVersion)));
|
||||
|
||||
List<Library> libraries = new ArrayList<>();
|
||||
// TODO libraries
|
||||
|
||||
Reference in New Issue
Block a user