mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-27 01:11:21 +01:00
Tweaked new display system
This commit is contained in:
parent
87494afacc
commit
ae8d3c10c2
@ -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) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user