Refactor actions to be entities with components (#19900)
This commit is contained in:
@@ -141,7 +141,8 @@ namespace Content.Shared.Cuffs
|
||||
|
||||
private void OnCuffsRemovedFromContainer(EntityUid uid, CuffableComponent component, EntRemovedFromContainerMessage args)
|
||||
{
|
||||
if (args.Container.ID != component.Container.ID)
|
||||
// ReSharper disable once ConditionalAccessQualifierIsNonNullableAccordingToAPIContract
|
||||
if (args.Container.ID != component.Container?.ID)
|
||||
return;
|
||||
|
||||
_handVirtualItem.DeleteInHandsMatching(uid, args.Entity);
|
||||
|
||||
Reference in New Issue
Block a user