Don't delete virtual hand items on client (#14954)

This commit is contained in:
metalgearsloth
2023-03-29 22:04:21 +11:00
committed by GitHub
parent 91cb2e4e99
commit 72d9bd0a58
2 changed files with 10 additions and 5 deletions

View File

@@ -134,11 +134,11 @@ namespace Content.Shared.Cuffs
private void OnCuffsRemovedFromContainer(EntityUid uid, CuffableComponent component, EntRemovedFromContainerMessage args)
{
if (args.Container.ID == component.Container.ID)
{
_handVirtualItem.DeleteInHandsMatching(uid, args.Entity);
UpdateCuffState(uid, component);
}
if (args.Container.ID != component.Container.ID)
return;
_handVirtualItem.DeleteInHandsMatching(uid, args.Entity);
UpdateCuffState(uid, component);
}
private void OnCuffsInsertedIntoContainer(EntityUid uid, CuffableComponent component, ContainerModifiedMessage args)