Remove this parameter from FloatMath.Clamp.

That was a stupid idea.
This commit is contained in:
Pieter-Jan Briers
2020-08-12 21:15:26 +02:00
parent f182ff5613
commit e76003948b
5 changed files with 5 additions and 5 deletions

View File

@@ -244,7 +244,7 @@ namespace Content.Client.GameObjects.Components
if (int.TryParse(ev.Text, out var result))
{
result = result.Clamp(0, byte.MaxValue);
result = FloatMath.Clamp(result, 0, byte.MaxValue);
_ignoreEvents = true;
_colorValue = (byte) result;