]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix: Holosigns can be stored again (#25249)
authorPlykiya <58439124+Plykiya@users.noreply.github.com>
Thu, 15 Feb 2024 01:06:11 +0000 (17:06 -0800)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2024 01:06:11 +0000 (19:06 -0600)
* Holosigns can be stored again

* TryComp to HasComp

---------

Co-authored-by: Plykiya <plykiya@protonmail.com>
Content.Server/Holosign/HolosignSystem.cs

index c52272e957f6bfda32d0671d4dbda08a535d3d31..58a0bf0d5f9e4cb0ae80f40b90b9122817bf695d 100644 (file)
@@ -3,6 +3,7 @@ using Content.Shared.Coordinates.Helpers;
 using Content.Server.Power.Components;\r
 using Content.Server.PowerCell;\r
 using Content.Shared.Interaction;\r
+using Content.Shared.Storage;\r
 \r
 namespace Content.Server.Holosign;\r
 \r
@@ -43,6 +44,7 @@ public sealed class HolosignSystem : EntitySystem
 \r
         if (args.Handled\r
             || !args.CanReach // prevent placing out of range\r
+            || HasComp<StorageComponent>(args.Target) // if it's a storage component like a bag, we ignore usage so it can be stored\r
             || !_powerCell.TryUseCharge(uid, component.ChargeUse) // if no battery or no charge, doesn't work\r
             )\r
             return;\r