Fixed NPE on reload with external enchantments

This commit is contained in:
Auxilor
2020-10-10 12:43:08 +01:00
parent 2021623c3e
commit 045cd685f5

View File

@@ -82,7 +82,7 @@ public final class EnchantDisplay {
description =
Arrays.asList(
WordUtils.wrap(
ConfigManager.getLang().getString("vanilla." + enchantment.getKey().getKey().toLowerCase() + ".description"),
String.valueOf(ConfigManager.getLang().getString("vanilla." + enchantment.getKey().getKey().toLowerCase() + ".description")),
ConfigManager.getConfig().getInt("lore.describe.wrap"),
"\n", false
).split("\\r?\\n"));