mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-21 06:52:22 +01:00
Prevent speed from hitting absolute zero.
This commit is contained in:
parent
eef0fd7059
commit
b4fe8e6b25
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user