Zombie Fixes and Tweaks (#9940)

This commit is contained in:
Nemanja
2022-07-26 20:35:34 -04:00
committed by GitHub
parent e795e5b5e1
commit 6276bda4f4
7 changed files with 47 additions and 19 deletions

View File

@@ -261,7 +261,11 @@ namespace Content.Server.Cuffs.Components
}
}
CanStillInteract = _entMan.TryGetComponent(Owner, out HandsComponent? handsComponent) && handsComponent.SortedHands.Count() > CuffedHandCount;
if (_entMan.TryGetComponent(Owner, out HandsComponent? handsComponent))
CanStillInteract = handsComponent.SortedHands.Count() > CuffedHandCount;
else
CanStillInteract = true;
_sysMan.GetEntitySystem<ActionBlockerSystem>().UpdateCanMove(Owner);
var ev = new CuffedStateChangeEvent();
_entMan.EventBus.RaiseLocalEvent(Owner, ref ev, true);