Fix charges (#36714)

We have the absolute value so use that.
This commit is contained in:
metalgearsloth
2025-04-19 18:49:02 +10:00
committed by GitHub
parent 9bdd7307fd
commit bffd951867

View File

@@ -118,7 +118,7 @@ public abstract class SharedChargesSystem : EntitySystem
action.Comp.LastUpdate = _timing.CurTime;
}
action.Comp.LastCharges = Math.Clamp(action.Comp.LastCharges + addCharges, 0, action.Comp.MaxCharges);
action.Comp.LastCharges = Math.Clamp(charges, 0, action.Comp.MaxCharges);
Dirty(action);
}