Rider reports these things as error for some reason so I'm just gonna uhhhh
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,12 +67,12 @@ namespace Content.Client.Weapons.Melee
|
||||
if (EntityManager.EntityExists(msg.Source) &&
|
||||
msg.TextureEffect &&
|
||||
EntityManager.TryGetComponent(msg.Source, out ISpriteComponent? sourceSprite) &&
|
||||
sourceSprite.BaseRSI?.Path != null)
|
||||
sourceSprite.BaseRSI?.Path is { } path)
|
||||
{
|
||||
var curTime = _gameTiming.CurTime;
|
||||
var effect = new EffectSystemMessage
|
||||
{
|
||||
EffectSprite = sourceSprite.BaseRSI.Path.ToString(),
|
||||
EffectSprite = path.ToString(),
|
||||
RsiState = sourceSprite.LayerGetState(0).Name,
|
||||
Coordinates = EntityManager.GetComponent<TransformComponent>(attacker).Coordinates,
|
||||
Color = Vector4.Multiply(new Vector4(255, 255, 255, 125), 1.0f),
|
||||
|
||||
Reference in New Issue
Block a user