Zombie Fixes and Tweaks (#9940)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user