mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Fixed the fix for the fix
This commit is contained in:
parent
ea54a86efe
commit
ba758312c0
@ -298,12 +298,11 @@ public class EnchantmentCache {
|
|||||||
if (enchantment instanceof EcoEnchant enchant) {
|
if (enchantment instanceof EcoEnchant enchant) {
|
||||||
List<String> levelDesc = new ArrayList<>();
|
List<String> levelDesc = new ArrayList<>();
|
||||||
List<String> defDesc = enchant.getWrappedDescription();
|
List<String> defDesc = enchant.getWrappedDescription();
|
||||||
defDesc.replaceAll(line -> line.replace("§r", "§r" + PLUGIN.getDisplayModule().getOptions().getDescriptionOptions().getColor()));
|
defDesc.replaceAll(line -> line.replace("&r", "&r" + PLUGIN.getDisplayModule().getOptions().getDescriptionOptions().getColor()));
|
||||||
defDesc.replaceAll(line -> Display.PREFIX + PLUGIN.getDisplayModule().getOptions().getDescriptionOptions().getColor() + line);
|
defDesc.replaceAll(line -> Display.PREFIX + PLUGIN.getDisplayModule().getOptions().getDescriptionOptions().getColor() + line);
|
||||||
for (String s : defDesc) {
|
for (String s : defDesc) {
|
||||||
levelDesc.add(s.replace("%value%", enchant.getPlaceholder(level)));
|
levelDesc.add(s.replace("%value%", enchant.getPlaceholder(level)));
|
||||||
}
|
}
|
||||||
levelDesc = StringUtils.formatList(levelDesc);
|
|
||||||
|
|
||||||
this.description.put(
|
this.description.put(
|
||||||
level,
|
level,
|
||||||
|
Loading…
Reference in New Issue
Block a user