Fix a broken null check on .NET 6 RC 2

This commit is contained in:
Pieter-Jan Briers
2021-10-13 02:44:26 +02:00
parent c68e190c5e
commit 97143d91ac

View File

@@ -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;