workaround for unlocalized names

This commit is contained in:
2016-05-13 17:39:37 +02:00
parent fa4d76f83a
commit 44445e7ba9
3 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ public class Items {
if (item instanceof BasicItem) {
if (((BasicItem) item).isOreDict()) {
String oreDictName;
String[] nameParts = item.getUnlocalizedName().split("_");
String[] nameParts = item.getUnlocalizedName().replace("item.", "").split("_");
if (nameParts.length > 2) {
oreDictName = Arrays.toString(Arrays.copyOfRange(nameParts, 0, nameParts.length - 1));