Skip empty strings when loading item data, fixes #655

This commit is contained in:
BuildTools 2019-01-27 00:14:44 -05:00
parent 28910dc89e
commit 5c734afcaf

View File

@ -172,6 +172,9 @@ public class ItemUtil {
EnchantmentStorageMeta esmeta = null;
for (String targ : args) {
String arg = targ.replace("minecraft|", "minecraft:");
if (arg.equals("")) {
continue;
}
if (arg.startsWith("name-")) {
name = arg.substring(5).toUpperCase();
} else if (arg.startsWith("amount-")) {