2
0
mirror of https://github.com/HMCL-dev/HMCL.git synced 2025-04-24 18:50:52 +08:00

fix(mod): does not translate mod with id "examplemod"

This commit is contained in:
huanghongxun 2021-10-13 21:20:08 +08:00
parent 673bc75cd5
commit 2852821d2c

@ -119,7 +119,9 @@ public final class ModTranslations {
modIdMap = new HashMap<>();
for (Mod mod : mods) {
for (String id : mod.getModIds()) {
modIdMap.put(id, mod);
if (StringUtils.isNotBlank(id) && !"examplemod".equals(id)) {
modIdMap.put(id, mod);
}
}
}
return true;