Added FlySpeed Cap to WitherAssault game

This commit is contained in:
xGamingDudex 2016-02-16 19:26:00 +01:00
parent d10dc3d7be
commit 35b9e01aff

View File

@ -634,7 +634,7 @@ public class WitherGame extends TeamGame implements IBlockRestorer
speed = 0.09 - (_yLimit - player.getLocation().getY()) * 0.006;
}
player.setFlySpeed((float) speed);
player.setFlySpeed((float) Math.min(1, speed));
// Bump
for (Block block : UtilBlock.getInRadius(