Small adaptions in moving checks.

This commit is contained in:
asofold 2012-09-15 16:23:43 +02:00
parent 90ad8d5189
commit 52fc47bd46
2 changed files with 3 additions and 3 deletions

View File

@ -122,8 +122,8 @@ public class MovingListener implements Listener {
event.setCancelled(true);
else if ((creativeFly.isEnabled(player) || survivalFly.isEnabled(player)) && event.getBlock() != null
&& data.setBack != null && blockY + 1D >= data.setBack.getY()
&& Math.abs(player.getLocation().getX() - event.getBlock().getX()) <= 1D
&& Math.abs(player.getLocation().getZ() - event.getBlock().getZ()) <= 1D
&& Math.abs(player.getLocation().getX() - 0.5 - event.getBlock().getX()) <= 1D
&& Math.abs(player.getLocation().getZ() - 0.5 - event.getBlock().getZ()) <= 1D
&& player.getLocation().getY() - blockY > 0D && player.getLocation().getY() - blockY < 2D
&& (Block.i(event.getBlock().getTypeId()) || isLiquid(event.getBlock().getType()))) {
// The creative fly and/or survival fly check is enabled, the block was placed below the player and is

View File

@ -68,7 +68,7 @@ public class NoFall extends Check {
if (!data.noFallWasOnGround && data.noFallOnGround) {
// If the difference between the fall distance recorded by Bukkit and NoCheatPlus is too big and the fall
// distance bigger than 2.
if (data.noFallFallDistance - player.getFallDistance() > 0.1D && (int) data.noFallFallDistance > 2) {
if (data.noFallFallDistance - player.getFallDistance() > 0.1D && data.noFallFallDistance > 3) {
// Add the difference to the violation level.
data.noFallVL += data.noFallFallDistance - player.getFallDistance();