mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-05 02:11:09 +01:00
Restore enchantments before comparing event item, fixes #1458
This commit is contained in:
parent
9bf6822896
commit
a2cb8a0841
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user