Math -> MathF

This commit is contained in:
zumorica
2020-05-14 18:58:45 +02:00
parent 569a5b3c85
commit 51f06c4142

View File

@@ -91,7 +91,7 @@ namespace Content.Server.GameObjects.Components.Mobs
/// <param name="seconds">How many seconds the mob will stay stunned</param>
public void Stun(float seconds)
{
seconds = Math.Min(_stunnedTimer + (seconds * StunTimeModifier), _stunCap);
seconds = MathF.Min(_stunnedTimer + (seconds * StunTimeModifier), _stunCap);
if (seconds <= 0f)
return;