From 743b8ed5cb9b76d1e4a299deb9a5f9f64ed063f3 Mon Sep 17 00:00:00 2001 From: AlexejheroYTB Date: Wed, 20 Apr 2022 08:07:59 +0300 Subject: [PATCH] Remove null check for ShipStatus known to not be null --- .../Net/Inner/Objects/Components/InnerPlayerPhysics.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Impostor.Server/Net/Inner/Objects/Components/InnerPlayerPhysics.cs b/src/Impostor.Server/Net/Inner/Objects/Components/InnerPlayerPhysics.cs index 7cc936d..45fd9ea 100644 --- a/src/Impostor.Server/Net/Inner/Objects/Components/InnerPlayerPhysics.cs +++ b/src/Impostor.Server/Net/Inner/Objects/Components/InnerPlayerPhysics.cs @@ -76,7 +76,7 @@ namespace Impostor.Server.Net.Inner.Objects.Components break; } - if (!Game.GameNet.ShipStatus!.Data.Vents.TryGetValue(ventId, out var vent)) + if (!Game.GameNet.ShipStatus.Data.Vents.TryGetValue(ventId, out var vent)) { if (await sender.Client.ReportCheatAsync(call, "Client interacted with nonexistent vent")) { -- 2.39.5