Merge MathHelper and FloatMath
Requires space-wizards/RobustToolbox#1234
This commit is contained in:
@@ -100,7 +100,7 @@ namespace Content.Server.GameObjects.Components.Power
|
||||
|
||||
private void SetCurrentCharge(float newChargeAmount)
|
||||
{
|
||||
_currentCharge = FloatMath.Clamp(newChargeAmount, 0, MaxCharge);
|
||||
_currentCharge = MathHelper.Clamp(newChargeAmount, 0, MaxCharge);
|
||||
UpdateStorageState();
|
||||
OnChargeChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user