1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-27 16:30:04 +02:00

Prevent speed from hitting absolute zero.

This commit is contained in:
KHobbits
2013-07-11 08:58:22 +01:00
parent 9fd5022a36
commit a86f995d8e

View File

@@ -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)