mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Fixed broken descriptions
This commit is contained in:
parent
9cc3a79783
commit
f4463c6244
@ -19,11 +19,7 @@ import org.bukkit.inventory.meta.EnchantmentStorageMeta;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.bukkit.persistence.PersistentDataType;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* All methods and fields pertaining to showing players the enchantments on their items.
|
||||
@ -97,9 +93,9 @@ public final class EnchantDisplay {
|
||||
"\n", false
|
||||
).split("\\r?\\n")
|
||||
);
|
||||
description.replaceAll(line -> prefix + descriptionColor + line);
|
||||
name = String.valueOf(ConfigManager.getLang().getString("enchantments." + enchantment.getKey().getKey().toLowerCase() + ".name"));
|
||||
}
|
||||
description.replaceAll(line -> prefix + descriptionColor + line);
|
||||
CACHE.put(enchantment, new Pair<>(name, description));
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user