mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 11:38:42 +01:00
Check that enchantment keys are not null, fixes #566
This commit is contained in:
parent
8a94b4d255
commit
027d6d613b
@ -299,7 +299,9 @@ public class ItemUtil {
|
|||||||
}
|
}
|
||||||
if (is.getEnchantments().isEmpty() == false) {
|
if (is.getEnchantments().isEmpty() == false) {
|
||||||
for (Entry<Enchantment, Integer> e : is.getEnchantments().entrySet()) {
|
for (Entry<Enchantment, Integer> e : is.getEnchantments().entrySet()) {
|
||||||
serial += ":enchantment-" + Quester.enchantmentString(e.getKey()) + " " + e.getValue();
|
if (e.getKey() != null) {
|
||||||
|
serial += ":enchantment-" + Quester.enchantmentString(e.getKey()) + " " + e.getValue();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (is.hasItemMeta()) {
|
if (is.hasItemMeta()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user