This commit is contained in:
hyperdefined
2024-12-17 17:47:14 -05:00
parent 6b263be041
commit 7b12a130a0
4 changed files with 7 additions and 7 deletions

View File

@@ -107,7 +107,9 @@ public class ConfigTools {
Component component;
// set the placeholder to the value
lore = lore.replace(placeHolder, String.valueOf(value));
if (placeHolder != null && value != null) {
lore = lore.replace(placeHolder, String.valueOf(value));
}
// if we match the old color codes, then format them as so
Matcher hexMatcher = CONFIG_HEX_PATTERN.matcher(lore);