Rider reports these things as error for some reason so I'm just gonna uhhhh

This commit is contained in:
Pieter-Jan Briers
2022-03-04 22:59:53 +01:00
parent 4a466f4927
commit c8a7f41331
2 changed files with 4 additions and 4 deletions

View File

@@ -32,10 +32,10 @@ namespace Content.Client.Storage.Visualizers
if (_openIcon != null &&
entities.TryGetComponent<SpriteComponent?>(entity, out var spriteComponent) &&
spriteComponent.BaseRSI?.Path != null)
spriteComponent.BaseRSI?.Path is { } path)
{
spriteComponent.LayerMapReserveBlank(OpenIcon);
spriteComponent.LayerSetSprite(OpenIcon, new Rsi(spriteComponent.BaseRSI.Path, _openIcon));
spriteComponent.LayerSetSprite(OpenIcon, new Rsi(path, _openIcon));
spriteComponent.LayerSetVisible(OpenIcon, false);
}
}