Removed key_skip on PacketSetCreativeSlot

This commit is contained in:
Auxilor 2020-10-14 14:35:18 +01:00 committed by BuildTools
parent 1708555dd0
commit 21e3c22462

View File

@ -145,9 +145,12 @@ public final class EnchantDisplay {
meta.getPersistentDataContainer().remove(KEY);
itemLore.removeIf((s) -> s.startsWith(prefix));
if(!meta.getPersistentDataContainer().has(KEY_SKIP, PersistentDataType.INTEGER)) {
if (meta instanceof EnchantmentStorageMeta)
meta.removeItemFlags(ItemFlag.HIDE_POTION_EFFECTS); // Thanks ShaneBee!
meta.removeItemFlags(ItemFlag.HIDE_ENCHANTS);
}
meta.getPersistentDataContainer().remove(KEY_SKIP);
meta.setLore(itemLore);
item.setItemMeta(meta);