Skip to content

Commit

Permalink
fix remove_enchaments removing all enchantments on non-books when mec…
Browse files Browse the repository at this point in the history
…hanism values were specified
  • Loading branch information
waterquarks committed Jan 24, 2019
1 parent b80001d commit 9d01a5e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -216,7 +216,9 @@ public void adjust(Mechanism mechanism) {
}
else {
for (Enchantment ench : item.getItemStack().getEnchantments().keySet()) {
item.getItemStack().removeEnchantment(ench);
if (names == null || names.contains(CoreUtilities.toLowerCase(ench.getName()))) {
item.getItemStack().removeEnchantment(ench);
}
}
}
}
Expand Down

0 comments on commit 9d01a5e

Please sign in to comment.