From 97143d91ac6f374456b44512a52bb83440053e96 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Wed, 13 Oct 2021 02:44:26 +0200 Subject: [PATCH] Fix a broken null check on .NET 6 RC 2 --- .../CharacterAppearance/HumanoidAppearanceComponent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/CharacterAppearance/HumanoidAppearanceComponent.cs b/Content.Client/CharacterAppearance/HumanoidAppearanceComponent.cs index 0d55e206d9..0280b27dd6 100644 --- a/Content.Client/CharacterAppearance/HumanoidAppearanceComponent.cs +++ b/Content.Client/CharacterAppearance/HumanoidAppearanceComponent.cs @@ -46,7 +46,8 @@ namespace Content.Client.CharacterAppearance private void UpdateLooks() { - if (Appearance is null! || + // ReSharper disable once ConditionIsAlwaysTrueOrFalse + if (Appearance == null || !Owner.TryGetComponent(out SpriteComponent? sprite)) { return;