Restore enchantments before comparing event item, fixes #1458

This commit is contained in:
PikaMug 2020-11-16 01:24:22 -05:00
parent 9bf6822896
commit a2cb8a0841

View File

@ -132,6 +132,7 @@ public class ItemListener implements Listener {
if (plugin.canUseQuests(evt.getEnchanter().getUniqueId())) {
final ItemStack enchantedItem = evt.getItem().clone();
enchantedItem.setAmount(1);
enchantedItem.addEnchantments(evt.getEnchantsToAdd());
final Quester quester = plugin.getQuester(evt.getEnchanter().getUniqueId());
for (final Quest quest : plugin.getQuests()) {
if (!quester.meetsCondition(quest, true)) {