Fixes for the recycler and related things (#12703)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Mervill
2022-11-25 01:00:41 -08:00
committed by GitHub
parent 11f9284bae
commit 5ae838a6a3
8 changed files with 49 additions and 15 deletions

View File

@@ -286,7 +286,7 @@ namespace Content.Server.Cuffs.Components
sprite.LayerSetState(0, cuff.BrokenState); // TODO: safety check to see if RSI contains the state?
}
_entMan.AddComponent<RecyclableComponent>(cuffsToRemove);
_entMan.EnsureComponent<RecyclableComponent>(cuffsToRemove);
}
CanStillInteract = _entMan.TryGetComponent(Owner, out HandsComponent? handsComponent) && handsComponent.SortedHands.Count() > CuffedHandCount;