Updated to eco 6.6.0

This commit is contained in:
Auxilor 2021-08-29 16:41:04 +01:00
parent 84d35e871d
commit 150cf3e277
2 changed files with 4 additions and 12 deletions

View File

@ -48,7 +48,7 @@ allprojects {
}
dependencies {
compileOnly 'com.willfp:eco:6.3.0'
compileOnly 'com.willfp:eco:6.6.0'
compileOnly 'org.jetbrains:annotations:19.0.0'

View File

@ -173,19 +173,11 @@ public class EnchantDisplay extends DisplayModule {
lore.addAll(0, itemLore);
}
lore.addAll(requirementLore);
itemStack.setItemMeta(meta);
fastItemStack.setLore(lore);
ItemMeta meta2 = itemStack.getItemMeta();
assert meta2 != null;
if (meta2 instanceof EnchantmentStorageMeta) {
meta2.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS);
if (meta instanceof EnchantmentStorageMeta) {
fastItemStack.addItemFlags(ItemFlag.HIDE_ENCHANTS);
}
meta2.addItemFlags(ItemFlag.HIDE_ENCHANTS);
itemStack.setItemMeta(meta2);
fastItemStack.addItemFlags(ItemFlag.HIDE_ENCHANTS);
}
@Override