diff --git a/src/fr/neatmonster/nocheatplus/utilities/CheckUtils.java b/src/fr/neatmonster/nocheatplus/utilities/CheckUtils.java index 3c89b102..3f0e0afe 100644 --- a/src/fr/neatmonster/nocheatplus/utilities/CheckUtils.java +++ b/src/fr/neatmonster/nocheatplus/utilities/CheckUtils.java @@ -350,6 +350,6 @@ public class CheckUtils { public static void onIllegalMove(final Player player){ player.kickPlayer("Illegal move."); - logWarning("[NCP] Disconnect " + player.getName() + " due to illegal move!"); + LogUtil.logWarning("[NCP] Disconnect " + player.getName() + " due to illegal move!"); } } diff --git a/src/fr/neatmonster/nocheatplus/utilities/PlayerLocation.java b/src/fr/neatmonster/nocheatplus/utilities/PlayerLocation.java index 3aab2506..959310d2 100644 --- a/src/fr/neatmonster/nocheatplus/utilities/PlayerLocation.java +++ b/src/fr/neatmonster/nocheatplus/utilities/PlayerLocation.java @@ -288,7 +288,7 @@ public class PlayerLocation { public boolean isOnClimbable() { if (onClimbable == null) { // Climbable blocks. - onClimbable = typeId == Material.LADDER.getId() || typeId == Material.VINE.getId(); + onClimbable = getTypeId() == Material.LADDER.getId() || typeId == Material.VINE.getId(); // TODO: maybe use specialized bounding box. // final double d = 0.1d; // onClimbable = BlockProperties.collides(getBlockAccess(), minX - d, minY - d, minZ - d, maxX + d, minY + 1.0, maxZ + d, BlockProperties.F_CLIMBABLE); @@ -546,7 +546,7 @@ public class PlayerLocation { if (entityPlayer.dead) return false; if (!entityPlayer.isSleeping()){ // This can not really test stance but height of bounding box. - final double dY = Math.abs(maxY - minY); + final double dY = Math.abs(entityPlayer.boundingBox.e - entityPlayer.boundingBox.b); if (dY > 1.8) return true; // dY > 1.65D || if (dY < 0.1D) return true; }