mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-06 16:27:59 +01:00
Fixing material translations
This commit is contained in:
parent
55e3eb8214
commit
a40698f543
@ -54,8 +54,18 @@ public class NameTranslatorManager {
|
||||
|
||||
CMIMaterial mat = CMIMaterial.get(materialName.replace(" ", ""));
|
||||
NameList nameLs = ListOfNames.get(mat);
|
||||
if (nameLs == null) {
|
||||
return mat.getName();
|
||||
|
||||
if (nameLs != null) {
|
||||
return nameLs.getName();
|
||||
}
|
||||
|
||||
if (mame != null && !mame.isEmpty()) {
|
||||
mat = CMIMaterial.get(materialName.replace(" ", ""));
|
||||
nameLs = ListOfNames.get(mat);
|
||||
|
||||
if (nameLs != null) {
|
||||
return nameLs.getName();
|
||||
}
|
||||
}
|
||||
|
||||
if (meta != null && !meta.isEmpty()) {
|
||||
@ -74,7 +84,7 @@ public class NameTranslatorManager {
|
||||
}
|
||||
}
|
||||
|
||||
return nameLs.getName();
|
||||
return mat.getName();
|
||||
case BREED:
|
||||
case KILL:
|
||||
case MILK:
|
||||
|
Loading…
Reference in New Issue
Block a user