Question.

This commit is contained in:
asofold 2012-09-09 07:22:56 +02:00
parent 0b083f9d30
commit f9cfd8bd5b

View File

@ -131,6 +131,7 @@ public class SurvivalFly extends Check {
double hDistanceAboveLimit = hDistance - hAllowedDistance - data.horizontalFreedom;
// Prevent players from walking on a liquid.
// TODO: yDistance == 0D <- should there not be a tolerance +- or 0...x ?
if (hDistanceAboveLimit <= 0D && hDistance > 0.1D && yDistance == 0D
&& MovingListener.isLiquid(to.getLocation().getBlock().getType()) && !to.isOnGround()
&& to.getY() % 1D < 0.8D)