mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Added hide-in-lore flag
This commit is contained in:
parent
3a24a27da7
commit
2ed76f1051
@ -124,6 +124,10 @@ public class EnchantDisplay extends DisplayModule {
|
||||
enchantments.clear();
|
||||
unsorted.forEach(enchantment -> enchantments.put(enchantment, tempEnchantments.get(enchantment)));
|
||||
enchantments.forEach((enchantment, level) -> {
|
||||
if (enchantment instanceof EcoEnchant ecoEnchant && ecoEnchant.hasFlag("hide-in-lore")) {
|
||||
return;
|
||||
}
|
||||
|
||||
String name = player == null
|
||||
? EnchantmentCache.getEntry(enchantment).getNameWithLevel(level)
|
||||
: EnchantmentCache.getEntry(enchantment).getNameWithLevel(level, player);
|
||||
|
Loading…
Reference in New Issue
Block a user