Fix EmptyContainer construction action (#14406)
This commit is contained in:
@@ -131,7 +131,7 @@ namespace Content.Shared.Cuffs
|
||||
|
||||
private void OnRejuvenate(EntityUid uid, CuffableComponent component, RejuvenateEvent args)
|
||||
{
|
||||
_container.EmptyContainer(component.Container, true, attachToGridOrMap: true);
|
||||
_container.EmptyContainer(component.Container, true);
|
||||
}
|
||||
|
||||
private void OnCuffsRemovedFromContainer(EntityUid uid, CuffableComponent component, EntRemovedFromContainerMessage args)
|
||||
|
||||
@@ -48,7 +48,7 @@ public sealed class EncryptionKeySystem : EntitySystem
|
||||
private void OnKeyRemoval(EntityUid uid, EncryptionKeyHolderComponent component, EncryptionRemovalFinishedEvent args)
|
||||
{
|
||||
var contained = component.KeyContainer.ContainedEntities.ToArray();
|
||||
_container.EmptyContainer(component.KeyContainer, entMan: EntityManager);
|
||||
_container.EmptyContainer(component.KeyContainer, reparent: false);
|
||||
foreach (var ent in contained)
|
||||
{
|
||||
_hands.PickupOrDrop(args.User, ent);
|
||||
|
||||
Reference in New Issue
Block a user