Skip to content

Commit

Permalink
Skip non-string custom-replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed Sep 4, 2022
1 parent bce4ad7 commit a91986d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/eu/decentsoftware/holograms/api/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public static void reload() {
if (customReplacementsSection != null) {
Map<String, String> replacements = new HashMap<>();
for (String key : customReplacementsSection.getKeys(false)) {
if (!customReplacementsSection.isString(key)) {
continue;
}
replacements.put(key, customReplacementsSection.getString(key));
}
CUSTOM_REPLACEMENTS = replacements;
Expand Down

0 comments on commit a91986d

Please sign in to comment.