mirror of
https://github.com/GTNewHorizons/waila.git
synced 2026-11-21 20:52:40 +00:00
Move font init to getter with guard if (#13)
* Move font init to getter with guard if * update bs
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user