改进 ModItem 中渲染 ModLoaderType 的代码 (#2310)

* 移除 ModItem 中多余的设置 VersionType 图标的代码

* 添加 ModItem 中缺失的 Quilt 标签
This commit is contained in:
TomatoPuddin 2023-06-26 17:43:02 +08:00 committed by GitHub
parent 126a6dbbed
commit da5a04b3ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -413,17 +413,17 @@ public class DownloadPage extends Control implements DecoratorPage {
for (ModLoaderType modLoaderType : dataItem.getLoaders()) {
switch (modLoaderType) {
case FORGE:
graphicPane.getChildren().setAll(SVG.releaseCircleOutline(Theme.blackFillBinding(), 24, 24));
content.getTags().add(i18n("install.installer.forge"));
break;
case FABRIC:
graphicPane.getChildren().setAll(SVG.releaseCircleOutline(Theme.blackFillBinding(), 24, 24));
content.getTags().add(i18n("install.installer.fabric"));
break;
case LITE_LOADER:
graphicPane.getChildren().setAll(SVG.releaseCircleOutline(Theme.blackFillBinding(), 24, 24));
content.getTags().add(i18n("install.installer.liteloader"));
break;
case QUILT:
content.getTags().add(i18n("install.installer.quilt"));
break;
}
}