Skip to content

Commit

Permalink
Update ModTranslations.java
Browse files Browse the repository at this point in the history
解决特殊情况:`EntityCulling`与`Entity Culling `
  • Loading branch information
zkitefly committed Aug 13, 2024
1 parent 1c8ca5f commit 816004c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ private boolean loadModSubnameMap() {
String name = mod.getSubname();
if (StringUtils.isNotBlank(name) && !"examplemod".equals(name)) {
modSubnameMap.put(name, mod);
if (name.matches(".* .*$")) { // 如果 name 有且仅有一个空格
name = name.replace(" ", "");
modSubnameMap.put(name, mod);
}
}
}
return true;
Expand Down

0 comments on commit 816004c

Please sign in to comment.