aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-02-11 21:49:48 +0900
committersyeyoung <cyoung06@naver.com>2023-02-11 21:49:48 +0900
commitbd216f966fb7fcbab950c40e50a66f06e3af5478 (patch)
tree7cb8ba387922f75ced33eb9d6277e51429fe2d39 /mod
parent88fd2542bc2d8b3ab46296c3bc24d87aa7ffdaa4 (diff)
downloadSkyblock-Dungeons-Guide-bd216f966fb7fcbab950c40e50a66f06e3af5478.tar.gz
Skyblock-Dungeons-Guide-bd216f966fb7fcbab950c40e50a66f06e3af5478.tar.bz2
Skyblock-Dungeons-Guide-bd216f966fb7fcbab950c40e50a66f06e3af5478.zip
- Fix NPE on first launching with text configs
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/richtext/TextHUDFeature.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/richtext/TextHUDFeature.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/richtext/TextHUDFeature.java
index 40a990cf..bfa4fab5 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/richtext/TextHUDFeature.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/richtext/TextHUDFeature.java
@@ -142,6 +142,7 @@ public abstract class TextHUDFeature extends AbstractHUDFeature {
private Map<String, DefaultingDelegatingTextStyle> styleMap = new HashMap<>();
public void registerDefaultStyle(String name, DefaultingDelegatingTextStyle style) {
defaultStyleMap.put(name, style);
+ styleMap.put(name, DefaultingDelegatingTextStyle.derive("User Setting of "+name, () -> defaultStyleMap.get(name)));
}
public DefaultingDelegatingTextStyle getStyle(String name) {
return styleMap.get(name);