From 102b817713eae035b82a575174b50344e5449add Mon Sep 17 00:00:00 2001 From: Spatison <137375981+Spatison@users.noreply.github.com> Date: Wed, 30 Oct 2024 16:47:08 +0300 Subject: [PATCH] tweak --- Content.Server/Holosign/HolosignSystem.cs | 4 ++++ .../Nyanotrasen/Entities/Objects/Devices/holoprojectors.yml | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Content.Server/Holosign/HolosignSystem.cs b/Content.Server/Holosign/HolosignSystem.cs index 4f4932c82f..e3fcb8591b 100644 --- a/Content.Server/Holosign/HolosignSystem.cs +++ b/Content.Server/Holosign/HolosignSystem.cs @@ -84,12 +84,16 @@ private void OnBeforeInteract(EntityUid uid, HolosignProjectorComponent componen // WD EDIT START private void OnUse(EntityUid uid, HolosignProjectorComponent component, UseInHandEvent args) { + if (args.Handled) + return; + foreach (var sign in component.Signs.ToList()) { component.Signs.Remove(sign); QueueDel(sign); } + args.Handled = true; component.Uses = component.MaxUses; _popup.PopupEntity(Loc.GetString("holoprojector-delete-signs"), args.User, args.User, PopupType.Medium); } diff --git a/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/holoprojectors.yml b/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/holoprojectors.yml index a288e4eb7b..793fe6ef2a 100644 --- a/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/holoprojectors.yml +++ b/Resources/Prototypes/Nyanotrasen/Entities/Objects/Devices/holoprojectors.yml @@ -9,9 +9,3 @@ - type: Sprite sprite: Nyanotrasen/Objects/Devices/Holoprojectors/eng.rsi state: icon - - type: ItemSlots - slots: - cell_slot: - name: power-cell-slot-component-slot-name-default - startingItem: PowerCellMedium - locked: true