Skip to content

Commit

Permalink
minor tetherhand fix (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
pheenty authored Nov 9, 2024
1 parent 0edcc31 commit a01dde8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ private void OnDamage(EntityUid uid, LightsaberComponent component, DamageChange
private void OnTryPickUp(EntityUid uid, LightsaberComponent component, GettingPickedUpAttemptEvent args)
{
if (component.LightsaberOwner != null && args.User != component.LightsaberOwner && HasComp<TetheredComponent>(uid))
{
args.Cancel();
return;
}

if (component.LightsaberOwner != args.User && _toggleSystem.IsActivated(uid))
_toggleSystem.TryDeactivate(uid);
Expand Down

0 comments on commit a01dde8

Please sign in to comment.