Fixed description wrapping

This commit is contained in:
Auxilor 2021-08-04 19:08:55 +01:00
parent 31f0709753
commit 3b94288434
2 changed files with 2 additions and 3 deletions

View File

@ -102,7 +102,7 @@ public class EnchantmentCache {
EnchantmentRarity rarity;
List<String> description;
if (enchantment instanceof EcoEnchant ecoEnchant) {
description = ecoEnchant.getWrappedDescription();
description = StringUtils.formatList(ecoEnchant.getWrappedDescription());
name = ecoEnchant.getDisplayName();
type = ecoEnchant.getType();
rarity = ecoEnchant.getRarity();

View File

@ -206,8 +206,7 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
availableFromLoot = config.getBool(EcoEnchants.OBTAINING_LOCATION + "loot");
maxLevel = config.getInt(EcoEnchants.GENERAL_LOCATION + "maximum-level", 1);
displayName = config.getString("name");
description = config.getString("description");
description = description.replace("§r", "§r" + this.getPlugin().getLangYml().getString("description-color"));
description = config.getString("description", false);
disabledWorldNames.clear();
disabledWorldNames.addAll(config.getStrings(EcoEnchants.GENERAL_LOCATION + "disabled-in-worlds"));
disabledWorlds.clear();