diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-11 21:49:48 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-11 21:49:48 +0900 |
commit | bd216f966fb7fcbab950c40e50a66f06e3af5478 (patch) | |
tree | 7cb8ba387922f75ced33eb9d6277e51429fe2d39 /mod | |
parent | 88fd2542bc2d8b3ab46296c3bc24d87aa7ffdaa4 (diff) | |
download | Skyblock-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.java | 1 |
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); |