diff --git a/QSB/QSBCore.cs b/QSB/QSBCore.cs index 81c853a5..41798ed9 100644 --- a/QSB/QSBCore.cs +++ b/QSB/QSBCore.cs @@ -157,6 +157,9 @@ public class QSBCore : ModBehaviour if (DebugSettings.AutoStart) { UseKcpTransport = true; + var config = Helper.Config; + config.SetSettingsValue("useKcpTransport", UseKcpTransport); + Helper.Storage.Save(config, Constants.ModConfigFileName); DebugSettings.DebugMode = true; } @@ -256,11 +259,11 @@ public class QSBCore : ModBehaviour public override void Configure(IModConfig config) { var useKcpTransport = UseKcpTransport; - UseKcpTransport = config.GetSettingsValue("useKcpTransport") || DebugSettings.AutoStart; + UseKcpTransport = config.GetSettingsValue("useKcpTransport"); if (!QSBNetworkManager.UpdateTransport()) { UseKcpTransport = useKcpTransport; - config.SetSettingsValue("useKcpTransport", useKcpTransport); + config.SetSettingsValue("useKcpTransport", UseKcpTransport); Helper.Storage.Save(config, Constants.ModConfigFileName); }