mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
Remove null check for ShipStatus known to not be null
This commit is contained in:
1 parent
ed008872f6
commit
743b8ed5cb
1 file changed
+1
-1
@@ -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"))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user