Fixed EnchantDisplay update

This commit is contained in:
Auxilor
2020-10-18 11:04:48 +01:00
parent 5322ea17b2
commit e80cd0ae10

View File

@@ -115,9 +115,11 @@ public final class EnchantDisplay {
break;
}
EnchantmentRarity rarity = EcoEnchants.getFromEnchantment(enchantment).getRarity();
if(rarity.hasCustomColor() && type != EcoEnchant.EnchantmentType.CURSE) {
color = rarity.getCustomColor();
if(EcoEnchants.getFromEnchantment(enchantment) != null) {
EnchantmentRarity rarity = EcoEnchants.getFromEnchantment(enchantment).getRarity();
if (rarity.hasCustomColor() && type != EcoEnchant.EnchantmentType.CURSE) {
color = rarity.getCustomColor();
}
}
name = color + name;