mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-14 23:14:45 +01:00
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user