mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-30 14:43:39 +01:00
Skip empty strings when loading item data, fixes #655
This commit is contained in:
parent
28910dc89e
commit
5c734afcaf
@ -172,6 +172,9 @@ public class ItemUtil {
|
|||||||
EnchantmentStorageMeta esmeta = null;
|
EnchantmentStorageMeta esmeta = null;
|
||||||
for (String targ : args) {
|
for (String targ : args) {
|
||||||
String arg = targ.replace("minecraft|", "minecraft:");
|
String arg = targ.replace("minecraft|", "minecraft:");
|
||||||
|
if (arg.equals("")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (arg.startsWith("name-")) {
|
if (arg.startsWith("name-")) {
|
||||||
name = arg.substring(5).toUpperCase();
|
name = arg.substring(5).toUpperCase();
|
||||||
} else if (arg.startsWith("amount-")) {
|
} else if (arg.startsWith("amount-")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user