diff --git a/src/main/java/com/gamingmesh/jobs/config/NameTranslatorManager.java b/src/main/java/com/gamingmesh/jobs/config/NameTranslatorManager.java index abe2d20a..4d60166e 100644 --- a/src/main/java/com/gamingmesh/jobs/config/NameTranslatorManager.java +++ b/src/main/java/com/gamingmesh/jobs/config/NameTranslatorManager.java @@ -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: