mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-08 17:28:15 +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(" ", ""));
|
CMIMaterial mat = CMIMaterial.get(materialName.replace(" ", ""));
|
||||||
NameList nameLs = ListOfNames.get(mat);
|
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()) {
|
if (meta != null && !meta.isEmpty()) {
|
||||||
@ -74,7 +84,7 @@ public class NameTranslatorManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nameLs.getName();
|
return mat.getName();
|
||||||
case BREED:
|
case BREED:
|
||||||
case KILL:
|
case KILL:
|
||||||
case MILK:
|
case MILK:
|
||||||
|
Loading…
Reference in New Issue
Block a user