From: Plykiya <58439124+Plykiya@users.noreply.github.com> Date: Thu, 15 Feb 2024 01:06:11 +0000 (-0800) Subject: Fix: Holosigns can be stored again (#25249) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=d6139429ad59a4137c383044613364137a8a338b;p=space-station-14.git Fix: Holosigns can be stored again (#25249) * Holosigns can be stored again * TryComp to HasComp --------- Co-authored-by: Plykiya --- diff --git a/Content.Server/Holosign/HolosignSystem.cs b/Content.Server/Holosign/HolosignSystem.cs index c52272e957..58a0bf0d5f 100644 --- a/Content.Server/Holosign/HolosignSystem.cs +++ b/Content.Server/Holosign/HolosignSystem.cs @@ -3,6 +3,7 @@ using Content.Shared.Coordinates.Helpers; using Content.Server.Power.Components; using Content.Server.PowerCell; using Content.Shared.Interaction; +using Content.Shared.Storage; namespace Content.Server.Holosign; @@ -43,6 +44,7 @@ public sealed class HolosignSystem : EntitySystem if (args.Handled || !args.CanReach // prevent placing out of range + || HasComp(args.Target) // if it's a storage component like a bag, we ignore usage so it can be stored || !_powerCell.TryUseCharge(uid, component.ChargeUse) // if no battery or no charge, doesn't work ) return;