And sneaking while flying is fixed (again)

This commit is contained in:
Adam committed 2012-05-22 17:08:41 -04:00
1 parent 65e0509117
commit 33dadf6ad7
1 file changed
+1 -1
@@ -199,7 +199,7 @@ public class Backend
public boolean checkSneak(Player player,double x,double z)
{
if(player.isSneaking())
if(player.isSneaking() && !player.isFlying())
{
return x > XZ_SPEED_MAX_SNEAK || z > XZ_SPEED_MAX_SNEAK;
}