mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Fixed reverting modifying non-target items leading to *all* items with HideFlags being modified
This commit is contained in:
parent
f61745613b
commit
a1b9ceafc7
@ -200,6 +200,10 @@ public class EnchantDisplay extends DisplayModule {
|
||||
|
||||
@Override
|
||||
protected void revert(@NotNull final ItemStack itemStack) {
|
||||
if (!EnchantmentTarget.ALL.getMaterials().contains(itemStack.getType())) {
|
||||
return;
|
||||
}
|
||||
|
||||
ItemMeta meta = itemStack.getItemMeta();
|
||||
|
||||
assert meta != null;
|
||||
|
Loading…
Reference in New Issue
Block a user