mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 04:25:15 +01:00
Correct enchant name translation
This commit is contained in:
parent
2a1663495c
commit
0fb849abca
@ -15,6 +15,7 @@ import com.gamingmesh.jobs.CMILib.ItemManager.CMIMaterial;
|
|||||||
import com.gamingmesh.jobs.container.JobInfo;
|
import com.gamingmesh.jobs.container.JobInfo;
|
||||||
import com.gamingmesh.jobs.container.LocaleReader;
|
import com.gamingmesh.jobs.container.LocaleReader;
|
||||||
import com.gamingmesh.jobs.container.NameList;
|
import com.gamingmesh.jobs.container.NameList;
|
||||||
|
import com.gamingmesh.jobs.stuff.Debug;
|
||||||
|
|
||||||
public class NameTranslatorManager {
|
public class NameTranslatorManager {
|
||||||
|
|
||||||
@ -86,22 +87,24 @@ public class NameTranslatorManager {
|
|||||||
case ENCHANT:
|
case ENCHANT:
|
||||||
for (NameList one : ListOfEnchants) {
|
for (NameList one : ListOfEnchants) {
|
||||||
String ids = one.getId();
|
String ids = one.getId();
|
||||||
|
ids = one.getMinecraftName();
|
||||||
|
if (ids.equalsIgnoreCase(info.getName().contains(":") ? info.getName().split(":")[0] : info.getName())) {
|
||||||
|
return one.getName() + (info.getName().contains(":") ? ":" + info.getName().split(":")[1] : "");
|
||||||
|
}
|
||||||
|
|
||||||
if (ids.equalsIgnoreCase(String.valueOf(info.getId()))) {
|
if (ids.equalsIgnoreCase(String.valueOf(info.getId()))) {
|
||||||
return one.getName() + " " + info.getMeta();
|
return one.getName() + " " + info.getMeta();
|
||||||
}
|
}
|
||||||
}
|
ids = one.getId() + ":" + one.getMeta();
|
||||||
for (NameList one : ListOfNames) {
|
|
||||||
String ids = one.getId() + ":" + one.getMeta();
|
|
||||||
if (!one.getMeta().equalsIgnoreCase("") && ids.equalsIgnoreCase(info.getId() + ":" + info.getMeta()) && !one.getId().equalsIgnoreCase("0")) {
|
if (!one.getMeta().equalsIgnoreCase("") && ids.equalsIgnoreCase(info.getId() + ":" + info.getMeta()) && !one.getId().equalsIgnoreCase("0")) {
|
||||||
return one.getName();
|
return one.getName();
|
||||||
}
|
}
|
||||||
}
|
ids = one.getId();
|
||||||
for (NameList one : ListOfNames) {
|
|
||||||
String ids = one.getId();
|
|
||||||
if (ids.equalsIgnoreCase(String.valueOf(info.getId())) && !one.getId().equalsIgnoreCase("0")) {
|
if (ids.equalsIgnoreCase(String.valueOf(info.getId())) && !one.getId().equalsIgnoreCase("0")) {
|
||||||
return one.getName();
|
return one.getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case CUSTOMKILL:
|
case CUSTOMKILL:
|
||||||
case EXPLORE:
|
case EXPLORE:
|
||||||
|
Loading…
Reference in New Issue
Block a user