mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Small adaptions in moving checks.
This commit is contained in:
parent
90ad8d5189
commit
52fc47bd46
@ -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
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user