From 7a2206d011ec9605679295f8dd0047ccf60258dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C4=81da?= Date: Sat, 18 Oct 2025 00:38:50 -0500 Subject: [PATCH] Fix recharging spray painter (#40953) * commit * fix --------- Co-authored-by: iaada --- Content.Server/SprayPainter/SprayPainterSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/SprayPainter/SprayPainterSystem.cs b/Content.Server/SprayPainter/SprayPainterSystem.cs index 24ab5e0ea2..f00ae1d7dd 100644 --- a/Content.Server/SprayPainter/SprayPainterSystem.cs +++ b/Content.Server/SprayPainter/SprayPainterSystem.cs @@ -56,7 +56,7 @@ public sealed class SprayPainterSystem : SharedSprayPainterSystem return; args.Handled = true; - if (TryComp(ent, out LimitedChargesComponent? charges) && charges.LastCharges < ent.Comp.DecalChargeCost) + if (TryComp(ent, out LimitedChargesComponent? charges) && _charges.GetCurrentCharges((ent, charges)) < ent.Comp.DecalChargeCost) { _popup.PopupEntity(Loc.GetString("spray-painter-interact-no-charges"), args.User, args.User); return; @@ -165,7 +165,7 @@ public sealed class SprayPainterSystem : SharedSprayPainterSystem return; if (TryComp(args.Used, out var charges) - && charges.LastCharges < painter.PipeChargeCost) + && _charges.GetCurrentCharges((args.Used, charges)) < painter.PipeChargeCost) { var msg = Loc.GetString("spray-painter-interact-no-charges"); _popup.PopupEntity(msg, args.User, args.User); -- 2.51.2