From: AlexejheroYTB Date: Wed, 20 Apr 2022 05:07:59 +0000 (+0300) Subject: Remove null check for ShipStatus known to not be null X-Git-Tag: v1.7.0~7^2 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=743b8ed5cb9b76d1e4a299deb9a5f9f64ed063f3;p=rhonda%2Fimpostor.git Remove null check for ShipStatus known to not be null --- 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")) {