]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix recharging spray painters (#41725)
authoralexalexmax <149889301+alexalexmax@users.noreply.github.com>
Fri, 5 Dec 2025 10:42:23 +0000 (02:42 -0800)
committerGitHub <noreply@github.com>
Fri, 5 Dec 2025 10:42:23 +0000 (10:42 +0000)
change one line

Content.Shared/SprayPainter/SharedSprayPainterSystem.cs

index a1316e356521f7753dfb6b603fc4de5fc54193be..d1f19d0c25c279ca9cace46cccb6e7aa7ec4e99f 100644 (file)
@@ -188,7 +188,7 @@ public abstract class SharedSprayPainterSystem : EntitySystem
         args.Handled = true;
 
         if (TryComp<LimitedChargesComponent>(args.Used, out var charges)
-            && charges.LastCharges < targetGroup.Cost)
+            && Charges.GetCurrentCharges((args.Used, charges)) < targetGroup.Cost)
         {
             var msg = Loc.GetString("spray-painter-interact-no-charges");
             _popup.PopupClient(msg, args.User, args.User);