Skip to content

Commit

Permalink
hide do after only if SSD or dont have any mind
Browse files Browse the repository at this point in the history
  • Loading branch information
TokenStyle committed Nov 26, 2024
1 parent 3596401 commit fef6119
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Content.Shared/Backmen/Standing/SharedLayingDownSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Content.Shared.Gravity;
using Content.Shared.Input;
using Content.Shared.Interaction;
using Content.Shared.Mind;
using Content.Shared.Mobs;
using Content.Shared.Mobs.Systems;
using Content.Shared.Movement.Components;
Expand Down Expand Up @@ -55,6 +56,7 @@ public abstract class SharedLayingDownSystem : EntitySystem
[Dependency] private readonly DamageableSystem _damageable = default!;
[Dependency] private readonly SharedAudioSystem _audioSystem = default!;
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly SharedMindSystem _mindSystem = default!;

[Dependency] private readonly IConfigurationManager _config = default!;

Expand Down Expand Up @@ -330,8 +332,8 @@ standingState.CurrentState is not StandingState.Lying ||
{
BreakOnHandChange = false,
RequireCanInteract = false,
Hidden = true
};
Hidden = !_mindSystem.TryGetMind(uid, out EntityUid _, out MindComponent? _)
};

if (!_doAfter.TryStartDoAfter(args))
return false;
Expand Down

0 comments on commit fef6119

Please sign in to comment.