mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-26 20:27:38 +01:00
Removed KEY fully
This commit is contained in:
parent
ef4e25b7b1
commit
152e1a830d
@ -27,7 +27,6 @@ import java.util.stream.Collectors;
|
||||
* All methods and fields pertaining to showing players the enchantments on their items.
|
||||
*/
|
||||
public class EnchantDisplay {
|
||||
|
||||
/**
|
||||
* The meta key to hide enchantments in lore
|
||||
*
|
||||
|
@ -23,8 +23,6 @@ public class PacketSetSlot extends AbstractPacketAdapter {
|
||||
|
||||
if(item.getItemMeta() != null) {
|
||||
hideEnchants = item.getItemMeta().getItemFlags().contains(ItemFlag.HIDE_ENCHANTS);
|
||||
if(hideEnchants && item.getItemMeta().getPersistentDataContainer().has(EnchantDisplay.KEY, PersistentDataType.INTEGER))
|
||||
hideEnchants = false;
|
||||
}
|
||||
|
||||
item = EnchantDisplay.displayEnchantments(item, hideEnchants);
|
||||
|
@ -25,8 +25,6 @@ public class PacketWindowItems extends AbstractPacketAdapter {
|
||||
|
||||
if(item.getItemMeta() != null) {
|
||||
hideEnchants = item.getItemMeta().getItemFlags().contains(ItemFlag.HIDE_ENCHANTS);
|
||||
if(hideEnchants && item.getItemMeta().getPersistentDataContainer().has(EnchantDisplay.KEY, PersistentDataType.INTEGER))
|
||||
hideEnchants = false;
|
||||
}
|
||||
|
||||
EnchantDisplay.displayEnchantments(item, hideEnchants);
|
||||
|
Loading…
Reference in New Issue
Block a user