#1006 Player speed workaround

This commit is contained in:
Gabriele C 2016-11-14 19:07:50 +01:00
parent 3362cf7b95
commit fabd77f548

View File

@ -84,10 +84,10 @@ public class LimboCache {
float walkSpeed = data.getWalkSpeed();
float flySpeed = data.getFlySpeed();
// Reset the speed value if it was 0
if(walkSpeed == 0f) {
if(walkSpeed < 0.01f) {
walkSpeed = 0.2f;
}
if(flySpeed == 0f) {
if(flySpeed < 0.01f) {
flySpeed = 0.2f;
}
player.setWalkSpeed(walkSpeed);