Forgot to add this

This commit is contained in:
coolGi
2022-09-02 12:27:55 +09:30
parent de0ddee3fb
commit 6e419b3120
@@ -38,8 +38,10 @@ public class MixinMinecraft {
at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Minecraft;setScreen(Lnet/minecraft/client/gui/screens/Screen;)V")
)
public void onOpenScreen(Minecraft instance, Screen guiScreen) {
if (!Config.Client.AutoUpdater.enableAutoUpdater.get()) // Don't do anything if the user doesn't want it
if (!Config.Client.AutoUpdater.enableAutoUpdater.get()) { // Don't do anything if the user doesn't want it
instance.setScreen(guiScreen);
return;
}
// Some init stuff
// We use sha1 to check the version as our versioning system is diffrent to the one on modrinth