From: miniduikboot Date: Thu, 31 Mar 2022 19:47:11 +0000 (+0200) Subject: Barebones port X-Git-Tag: v1.7.0~8^2~5 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=ae00ff92959c2a51b3d624d31ff1c33a6fd8e632;p=rhonda%2Fimpostor.git Barebones port --- diff --git a/src/Impostor.Api/Innersloth/GameOptionsData.cs b/src/Impostor.Api/Innersloth/GameOptionsData.cs index 3f01ca8..a86058b 100644 --- a/src/Impostor.Api/Innersloth/GameOptionsData.cs +++ b/src/Impostor.Api/Innersloth/GameOptionsData.cs @@ -193,7 +193,8 @@ namespace Impostor.Api.Innersloth RoleOptions.Serialize(writer); } - if (version > 5) + // V6 is equal to V5 + if (version > 6) { throw new ImpostorException($"Unknown GameOptionsData version {Version}."); } @@ -260,7 +261,8 @@ namespace Impostor.Api.Innersloth RoleOptions = RoleOptionsData.Deserialize(bytes); } - if (Version > 5) + // V6 is equal to V5 + if (Version > 6) { throw new ImpostorException($"Unknown GameOptionsData version {Version}."); } diff --git a/src/Impostor.Server/Net/Manager/ClientManager.cs b/src/Impostor.Server/Net/Manager/ClientManager.cs index 94426bf..0c498e6 100644 --- a/src/Impostor.Server/Net/Manager/ClientManager.cs +++ b/src/Impostor.Server/Net/Manager/ClientManager.cs @@ -24,6 +24,7 @@ namespace Impostor.Server.Net.Manager GameVersion.GetVersion(2021, 11, 9), // 2021.11.9 GameVersion.GetVersion(2021, 12, 14), // 2021.12.14 GameVersion.GetVersion(2022, 1, 10), // 2021.2.23 + GameVersion.GetVersion(2022, 2, 2), // 2022.3.29 }; private readonly ILogger _logger;