diff --git a/Content.Server/_White/Jukebox/TapeCreatorSystem.cs b/Content.Server/_White/Jukebox/TapeCreatorSystem.cs index eb03220917..d193a7a623 100644 --- a/Content.Server/_White/Jukebox/TapeCreatorSystem.cs +++ b/Content.Server/_White/Jukebox/TapeCreatorSystem.cs @@ -158,6 +158,21 @@ public sealed class TapeCreatorSystem : EntitySystem DirtyEntity(GetEntity(ev.TapeCreatorUid)); Dirty(insertedTape, tapeComponent); - _popup.PopupEntity("Запись мозговой активности завершена", tapeCreator); + Record(tapeCreator, tapeCreatorComponent, _popup, _container); + } + + private void Record( + EntityUid uid, + TapeCreatorComponent component, + SharedPopupSystem popupSystem, + SharedContainerSystem containerSystem) + { + containerSystem.EmptyContainer(component.TapeContainer, force: true); + + component.Recording = false; + component.InsertedTape = null; + + popupSystem.PopupEntity("Запись мозговой активности завершена", uid); + Dirty(uid, component); } }