From a91986d147b448388f26eeac0cd1e4a0ee530a57 Mon Sep 17 00:00:00 2001 From: d0by Date: Sun, 4 Sep 2022 17:26:05 +0200 Subject: [PATCH] Skip non-string custom-replacements --- src/main/java/eu/decentsoftware/holograms/api/Settings.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/eu/decentsoftware/holograms/api/Settings.java b/src/main/java/eu/decentsoftware/holograms/api/Settings.java index 0cb1f786..e01c9a86 100644 --- a/src/main/java/eu/decentsoftware/holograms/api/Settings.java +++ b/src/main/java/eu/decentsoftware/holograms/api/Settings.java @@ -70,6 +70,9 @@ public static void reload() { if (customReplacementsSection != null) { Map replacements = new HashMap<>(); for (String key : customReplacementsSection.getKeys(false)) { + if (!customReplacementsSection.isString(key)) { + continue; + } replacements.put(key, customReplacementsSection.getString(key)); } CUSTOM_REPLACEMENTS = replacements;