]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix holosignsystem popup (#32808)
authorlzk <124214523+lzk228@users.noreply.github.com>
Thu, 17 Oct 2024 03:21:04 +0000 (05:21 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Oct 2024 03:21:04 +0000 (22:21 -0500)
Content.Server/Holosign/HolosignSystem.cs

index a36603b01dd3d004be5a2450f286889938019dac..b63a54598983168bdd10eb8dc641fdb8828fa009 100644 (file)
@@ -45,7 +45,7 @@ public sealed class HolosignSystem : EntitySystem
         if (args.Handled
             || !args.CanReach // prevent placing out of range
             || HasComp<StorageComponent>(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
+            || !_powerCell.TryUseCharge(uid, component.ChargeUse, user: args.User) // if no battery or no charge, doesn't work
             )
             return;