Move font init to getter with guard if (#13)

* Move font init to getter with guard if

* update bs
This commit is contained in:
ghostflyby authored and GitHub committed 2023-10-18 13:50:55 +02:00
1 parent d682f65320
commit e7524e80f1
2 files changed
+214 -85

No files matched your search

@@ -32,8 +32,6 @@ public class ProxyClient extends ProxyServer {
LangUtil.loadLangDir("waila");
minecraftiaFont = FontLoader.createFont(new ResourceLocation("waila", "fonts/Minecraftia.ttf"), 14, true);
// TickRegistry.registerTickHandler(WailaTickHandler.instance(), Side.CLIENT);
if (Loader.isModLoaded("NotEnoughItems")) {
@@ -67,6 +65,8 @@ public class ProxyClient extends ProxyServer {
@Override
public Object getFont() {
if (minecraftiaFont == null)
minecraftiaFont = FontLoader.createFont(new ResourceLocation("waila", "fonts/Minecraftia.ttf"), 14, true);
return this.minecraftiaFont;
}