mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-27 08:59:45 +00:00
Prevent speed from hitting absolute zero.
This commit is contained in:
parent
9f015c1bda
commit
72fd893733
1 changed files with 2 additions and 2 deletions
|
@ -144,9 +144,9 @@ public class Commandspeed extends EssentialsCommand
|
||||||
{
|
{
|
||||||
userSpeed = 10f;
|
userSpeed = 10f;
|
||||||
}
|
}
|
||||||
else if (userSpeed < 0f)
|
else if (userSpeed < 0.0001f)
|
||||||
{
|
{
|
||||||
userSpeed = 0f;
|
userSpeed = 0.0001f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (NumberFormatException e)
|
catch (NumberFormatException e)
|
||||||
|
|
Loading…
Reference in a new issue