Improved EnchantDisplay update routine

This commit is contained in:
BuildTools
2020-09-23 11:33:53 +01:00
parent 85e0bd4574
commit 36caff8728

View File

@@ -76,8 +76,8 @@ public final class EnchantDisplay {
Arrays.asList(Enchantment.values()).parallelStream().forEach(enchantment -> {
List<String> description;
NamespacedKey key = enchantment.getKey();
if(EcoEnchants.getByKey(key) != null) {
description = ((EcoEnchant) enchantment).getDescription();
if(EcoEnchants.getFromEnchantment(enchantment) != null) {
description = EcoEnchants.getFromEnchantment(enchantment).getDescription();
} else {
description =
Arrays.asList(