mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 03:25:20 +01:00
Fix ItemFlags not working, fixes #626
This commit is contained in:
parent
6c1212b21f
commit
b17d95678a
@ -301,9 +301,8 @@ public class ItemUtil {
|
||||
if (!lore.isEmpty()) {
|
||||
meta.setLore(lore);
|
||||
}
|
||||
if (flags[0] != null && flags[0].toString().equals("")) {
|
||||
for (String flag : flags) {
|
||||
if (flag != null) {
|
||||
if (flag != null && !flag.equals("")) {
|
||||
try {
|
||||
meta.addItemFlags(ItemFlag.valueOf(flag));
|
||||
} catch (NullPointerException npe) {
|
||||
@ -315,7 +314,6 @@ public class ItemUtil {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (stack.getType().equals(Material.ENCHANTED_BOOK)) {
|
||||
esmeta = (EnchantmentStorageMeta) meta;
|
||||
for (Entry<Enchantment, Integer> e : stored.entrySet()) {
|
||||
|
Loading…
Reference in New Issue
Block a user