init change :)

This commit is contained in:
choco
2025-10-16 23:44:15 +02:00
parent ea8f8e3895
commit 8a3902ec2b

View File

@@ -103,8 +103,6 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService
UIColors.Initialize(_lightlessConfigService);
Mediator.StartQueueProcessing();
CheckVersion();
return Task.CompletedTask;
}
@@ -128,6 +126,7 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService
Logger.LogInformation("User has valid setup: {hasValidSetup}", _lightlessConfigService.Current.HasValidSetup());
Logger.LogInformation("Server has valid config: {hasValidConfig}", _serverConfigurationManager.HasValidConfig());
// Show update notes if version has changed and user has valid setup
if (!string.Equals(lastSeen, currentVersion, StringComparison.Ordinal) &&
_lightlessConfigService.Current.HasValidSetup() &&
_serverConfigurationManager.HasValidConfig())
@@ -174,6 +173,8 @@ public class LightlessPlugin : MediatorSubscriberBase, IHostedService
_runtimeServiceScope.ServiceProvider.GetRequiredService<VisibleUserDataDistributor>();
_runtimeServiceScope.ServiceProvider.GetRequiredService<NotificationService>();
_runtimeServiceScope.ServiceProvider.GetRequiredService<NameplateService>();
CheckVersion();
#if !DEBUG
if (_lightlessConfigService.Current.LogLevel != LogLevel.Information)
{