Improve auto updater logging and fix potential issues with updating

This commit is contained in:
James Seibel
2025-01-07 21:34:07 -06:00
parent 4e26e4ab31
commit 7bc2ee296c
4 changed files with 15 additions and 48 deletions
@@ -76,10 +76,12 @@ public class MixinMinecraft
)
private void buildInitialScreens(Runnable runnable)
{
boolean showUpdater = SelfUpdater.onStart(); // always needs to be called, otherwise auto update setup won't be completed
// TODO merge logic for forge, neo, and fabric
if (
Config.Client.Advanced.AutoUpdater.enableAutoUpdater.get() // Don't do anything if the user doesn't want it
&& SelfUpdater.onStart()
showUpdater
&& Config.Client.Advanced.AutoUpdater.enableAutoUpdater.get() // Don't do anything if the user doesn't want it
)
{
runnable = () ->