mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-27 21:26:29 +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;
|
||||
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-")) {
|
||||
|
Loading…
Reference in New Issue
Block a user