diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-07-11 08:58:22 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-07-11 08:58:22 +0100 |
commit | 72fd893733005a75f9809beb4d7943c39f955dc1 (patch) | |
tree | e2c70ab121bc97bb0823adeb170d56b2b03e9127 | |
parent | 9f015c1bda585dc67f31d447c9b7cce1bc1bf9ca (diff) | |
download | Essentials-72fd893733005a75f9809beb4d7943c39f955dc1.tar Essentials-72fd893733005a75f9809beb4d7943c39f955dc1.tar.gz Essentials-72fd893733005a75f9809beb4d7943c39f955dc1.tar.lz Essentials-72fd893733005a75f9809beb4d7943c39f955dc1.tar.xz Essentials-72fd893733005a75f9809beb4d7943c39f955dc1.zip |
Prevent speed from hitting absolute zero.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandspeed.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java b/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java index f471bb622..f4bc6e597 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandspeed.java @@ -144,9 +144,9 @@ public class Commandspeed extends EssentialsCommand { userSpeed = 10f; } - else if (userSpeed < 0f) + else if (userSpeed < 0.0001f) { - userSpeed = 0f; + userSpeed = 0.0001f; } } catch (NumberFormatException e) |