From ae00ff92959c2a51b3d624d31ff1c33a6fd8e632 Mon Sep 17 00:00:00 2001 From: miniduikboot Date: Thu, 31 Mar 2022 21:47:11 +0200 Subject: [PATCH] Barebones port --- src/Impostor.Api/Innersloth/GameOptionsData.cs | 6 ++++-- src/Impostor.Server/Net/Manager/ClientManager.cs | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) 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; -- 2.39.5