Skip to content

Commit

Permalink
Update Content.Client/Standing/LayingDownSystem.cs
Browse files Browse the repository at this point in the history
Co-authored-by: VMSolidus <[email protected]>
Signed-off-by: gluesniffler <[email protected]>
  • Loading branch information
gluesniffler and VMSolidus authored Sep 20, 2024
1 parent 8dea9df commit 01c97e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Client/Standing/LayingDownSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ private void OnDowned(DrawDownedEvent args)
{
var uid = GetEntity(args.Uid);

if (!TryComp<SpriteComponent>(uid, out var sprite) || !TryComp<LayingDownComponent>(uid, out var component))
if (!TryComp<SpriteComponent>(uid, out var sprite)
|| !TryComp<LayingDownComponent>(uid, out var component))
return;

if (!component.OriginalDrawDepth.HasValue)
Expand Down

0 comments on commit 01c97e5

Please sign in to comment.