mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-29 16:15:17 +01:00
Updated to eco 6.6.0
This commit is contained in:
parent
84d35e871d
commit
150cf3e277
@ -48,7 +48,7 @@ allprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'com.willfp:eco:6.3.0'
|
compileOnly 'com.willfp:eco:6.6.0'
|
||||||
|
|
||||||
compileOnly 'org.jetbrains:annotations:19.0.0'
|
compileOnly 'org.jetbrains:annotations:19.0.0'
|
||||||
|
|
||||||
|
@ -173,19 +173,11 @@ public class EnchantDisplay extends DisplayModule {
|
|||||||
lore.addAll(0, itemLore);
|
lore.addAll(0, itemLore);
|
||||||
}
|
}
|
||||||
lore.addAll(requirementLore);
|
lore.addAll(requirementLore);
|
||||||
itemStack.setItemMeta(meta);
|
|
||||||
fastItemStack.setLore(lore);
|
fastItemStack.setLore(lore);
|
||||||
|
if (meta instanceof EnchantmentStorageMeta) {
|
||||||
ItemMeta meta2 = itemStack.getItemMeta();
|
fastItemStack.addItemFlags(ItemFlag.HIDE_ENCHANTS);
|
||||||
assert meta2 != null;
|
|
||||||
|
|
||||||
if (meta2 instanceof EnchantmentStorageMeta) {
|
|
||||||
meta2.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS);
|
|
||||||
}
|
}
|
||||||
|
fastItemStack.addItemFlags(ItemFlag.HIDE_ENCHANTS);
|
||||||
meta2.addItemFlags(ItemFlag.HIDE_ENCHANTS);
|
|
||||||
|
|
||||||
itemStack.setItemMeta(meta2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user