Tweaked new display system

This commit is contained in:
Auxilor 2020-09-12 15:28:00 +01:00
parent 87494afacc
commit ae8d3c10c2

View File

@ -28,8 +28,9 @@ import java.util.Map;
public class EnchantDisplay {
/**
* The meta key of the length of enchantments in lore
* The meta key of the length of enchantments in lore (for legacy support)
*/
@Deprecated
private static final NamespacedKey key = new NamespacedKey(EcoEnchantsPlugin.getInstance(), "ecoenchantlore-len");
/**
@ -103,6 +104,7 @@ public class EnchantDisplay {
if(itemLore.size() >= enchantLoreLength) {
itemLore.subList(0, enchantLoreLength).clear();
}
meta.getPersistentDataContainer().remove(key);
}
} catch (NullPointerException ignored) {}