优化安装实例时自动补全模组加载器名称 (#5698)

This commit is contained in:
辞庐
2026-03-08 22:05:23 +08:00
committed by GitHub
parent 6529a3bb03
commit 584f0f39bc
@@ -124,14 +124,14 @@ public class InstallersPage extends AbstractInstallersPage {
if (libraryType != null) {
String loaderName = switch (libraryType) {
case FORGE -> "forge";
case NEO_FORGE -> "neoforge";
case CLEANROOM -> "cleanroom";
case LEGACY_FABRIC -> "legacy_fabric";
case FABRIC -> "fabric";
case LITELOADER -> "liteloader";
case QUILT -> "quilt";
case OPTIFINE -> "optifine";
case FORGE -> "Forge";
case NEO_FORGE -> "NeoForge";
case CLEANROOM -> "Cleanroom";
case LEGACY_FABRIC -> "LegacyFabric";
case FABRIC -> "Fabric";
case LITELOADER -> "LiteLoader";
case QUILT -> "Quilt";
case OPTIFINE -> "OptiFine";
default -> null;
};