From 72fd893733005a75f9809beb4d7943c39f955dc1 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Thu, 11 Jul 2013 08:58:22 +0100 Subject: Prevent speed from hitting absolute zero. --- Essentials/src/com/earth2me/essentials/commands/Commandspeed.java | 4 ++-- 1 file 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) -- cgit v1.2.3