diff --git a/Content.Server/GameObjects/Components/Items/Storage/EntityStorageComponent.cs b/Content.Server/GameObjects/Components/Items/Storage/EntityStorageComponent.cs index 45447a87a1..fcd72fdbf5 100644 --- a/Content.Server/GameObjects/Components/Items/Storage/EntityStorageComponent.cs +++ b/Content.Server/GameObjects/Components/Items/Storage/EntityStorageComponent.cs @@ -28,7 +28,7 @@ namespace Content.Server.GameObjects.Components [RegisterComponent] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IStorageComponent))] - public class EntityStorageComponent : Component, IActivate, IStorageComponent, IInteractUsing + public class EntityStorageComponent : Component, IActivate, IStorageComponent, IInteractUsing, IDestroyAct { public override string Name => "EntityStorage"; @@ -380,5 +380,10 @@ namespace Content.Server.GameObjects.Components IsWeldedShut ^= true; return true; } + + public void OnDestroy(DestructionEventArgs eventArgs) + { + EmptyContents(); + } } }