@@ -32,6 +32,8 @@ public abstract class TitleScreenMixin extends Screen
3232{
3333 private AbstractWidget realmsButton = null ;
3434 private Button wurstOptionsButton ;
35+ private int forkInfoX = 4 ;
36+ private int forkInfoY = 4 ;
3537
3638 private TitleScreenMixin (WurstClient wurst , Component title )
3739 {
@@ -80,6 +82,9 @@ private void onAddNormalWidgets(int y, int spacingY,
8082 @ Inject (at = @ At ("RETURN" ), method = "tick()V" )
8183 private void onTick (CallbackInfo ci )
8284 {
85+ if (WurstClient .INSTANCE .getForkUpdateChecker () != null )
86+ WurstClient .INSTANCE .getForkUpdateChecker ().startIfNeeded ();
87+
8388 if (realmsButton == null || wurstOptionsButton == null )
8489 return ;
8590
@@ -95,9 +100,15 @@ private void onRender(GuiGraphics graphics, int mouseX, int mouseY,
95100 {
96101 Font font = minecraft .font ;
97102 String brand = NiceWurstModule .isActive () ? "NiceWurst" : "Wurst" ;
98- String text = brand + " " + BuildConfig .MOD_VERSION ;
99- graphics .drawString (font , Component .literal (text ).getVisualOrderText (),
100- 4 , 4 , 0xFFFFFFFF , true );
103+ String baseText = brand + " " + BuildConfig .MOD_VERSION + " v"
104+ + BuildConfig .FORK_RELEASE_VERSION ;
105+ String suffix = WurstClient .INSTANCE .getForkUpdateChecker () == null ? ""
106+ : WurstClient .INSTANCE .getForkUpdateChecker ().getStatusSuffix ();
107+ String text = baseText + suffix ;
108+
109+ Component component = Component .literal (text );
110+ graphics .drawString (font , component .getVisualOrderText (), forkInfoX ,
111+ forkInfoY , 0xFFFFFFFF , true );
101112 }
102113
103114 /**
0 commit comments