mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-07 23:32:01 +01:00
Question.
This commit is contained in:
parent
0b083f9d30
commit
f9cfd8bd5b
@ -131,6 +131,7 @@ public class SurvivalFly extends Check {
|
|||||||
double hDistanceAboveLimit = hDistance - hAllowedDistance - data.horizontalFreedom;
|
double hDistanceAboveLimit = hDistance - hAllowedDistance - data.horizontalFreedom;
|
||||||
|
|
||||||
// Prevent players from walking on a liquid.
|
// 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
|
if (hDistanceAboveLimit <= 0D && hDistance > 0.1D && yDistance == 0D
|
||||||
&& MovingListener.isLiquid(to.getLocation().getBlock().getType()) && !to.isOnGround()
|
&& MovingListener.isLiquid(to.getLocation().getBlock().getType()) && !to.isOnGround()
|
||||||
&& to.getY() % 1D < 0.8D)
|
&& to.getY() % 1D < 0.8D)
|
||||||
|
Loading…
Reference in New Issue
Block a user