Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
burningtnt committed Oct 29, 2023
1 parent dba600d commit e648a6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ protected void updateControl(ModInfoObject dataItem, boolean empty) {
if (empty) return;
content.setTitle(dataItem.getTitle());
content.getTags().clear();
content.getTags().add(dataItem.getModInfo().getModLoaderType().getLoaderName());
if (dataItem.getMod() != null) {
content.getTags().add(dataItem.getModInfo().getModLoaderType().getLoaderName());
if (I18n.getCurrentLocale().getLocale() == Locale.CHINA) {
content.getTags().add(dataItem.getMod().getDisplayName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static LocalModFile fromFile(ModManager modManager, Path modFile, FileSys
}
}
return new LocalModFile(modManager, modManager.getLocalMod(mod.getModId(), ModLoaderType.FORGE), modFile, mod.getDisplayName(), new LocalModFile.Description(mod.getDescription()),
mod.getAuthors(), mod.getVersion().replace("${file.jarVersion}", jarVersion), "",
mod.getAuthors(), jarVersion == null ? mod.getVersion() : mod.getVersion().replace("${file.jarVersion}", jarVersion), "",
mod.getDisplayURL(),
metadata.getLogoFile());
}
Expand Down

0 comments on commit e648a6d

Please sign in to comment.