diff --git a/Components/ServerSwitcherComponent.cs b/Components/ServerSwitcherComponent.cs index 2e0a88f..2f18618 100644 --- a/Components/ServerSwitcherComponent.cs +++ b/Components/ServerSwitcherComponent.cs @@ -180,14 +180,13 @@ namespace SeamlessClient.ServerSwitching } SendPlayerData.Invoke(MyMultiplayer.Static, new object[] { MyGameService.OnlineName }); - isSwitch = false; } } public static bool LoadClientsFromWorld(ref List clients) { - if(!isSwitch || clients == null || clients.Count == 0) - return true; + if(clients == null || clients.Count == 0) + return false; //Dictionary @@ -210,16 +209,13 @@ namespace SeamlessClient.ServerSwitching } - return false; + return true; } private static bool ProcessAllMembersData(ref AllMembersDataMsg msg) { - if(!isSwitch) - return true; - Sync.Players.ClearIdentities(); if (msg.Identities != null) @@ -614,6 +610,11 @@ namespace SeamlessClient.ServerSwitching PauseClient.Invoke(MyMultiplayer.Static, new object[] { false }); MySandboxGame.PausePop(); MyHud.Notifications.Remove(MyNotificationSingletons.ConnectionProblem); + + + + + isSwitch = false; } diff --git a/Seamless.cs b/Seamless.cs index 72867e3..0014fa2 100644 --- a/Seamless.cs +++ b/Seamless.cs @@ -37,7 +37,7 @@ namespace SeamlessClient private bool Initilized = false; public static bool isSeamlessServer { get; private set; } = false; public static bool isDebug = false; - public static bool UseNewVersion = true; + public static bool UseNewVersion = false; diff --git a/SeamlessClient.csproj b/SeamlessClient.csproj index 42355dd..a018d0c 100644 --- a/SeamlessClient.csproj +++ b/SeamlessClient.csproj @@ -40,12 +40,10 @@ GameBinaries\ProtoBuf.Net.dll - False False GameBinaries\ProtoBuf.Net.Core.dll - False GameBinaries\Sandbox.Common.dll @@ -87,17 +85,13 @@ GameBinaries\VRage.Input.dll False - - GameBinaries\VRage.Library.dll - False - + GameBinaries\VRage.Math.dll False GameBinaries\VRage.Render.dll - False