Skip to content

Commit

Permalink
Update Content.Server/Medical/PenLightSystem.cs
Browse files Browse the repository at this point in the history
Co-authored-by: VMSolidus <[email protected]>
Signed-off-by: SleepyScarecrow <[email protected]>
  • Loading branch information
SleepyScarecrow and VMSolidus authored Sep 11, 2024
1 parent a48a605 commit 26c02e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Content.Server/Medical/PenLightSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,8 @@ private void OpenUserInterface(EntityUid user, EntityUid penlight)
private void Diagnose(EntityUid penlight, EntityUid target)
{
if (!_uiSystem.TryGetUi(penlight, PenLightUiKey.Key, out var ui)
|| !HasComp<EyeComponent>(target))
return;

if (!HasComp<DamageableComponent>(target))
|| !HasComp<EyeComponent>(target)
|| !HasComp<DamageableComponent>(target))
return;

// Blind
Expand Down

0 comments on commit 26c02e5

Please sign in to comment.