mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Updated to eco 6.6.0
This commit is contained in:
parent
84d35e871d
commit
150cf3e277
@ -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'
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user