Fix recharging spray painters (#41725)

change one line
This commit is contained in:
alexalexmax
2025-12-05 02:42:23 -08:00
committed by GitHub
parent 88561d4e83
commit f182004578

View 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);