From c2e4549ec7645bb3fb8694fd3146398aa666c416 Mon Sep 17 00:00:00 2001 From: asofold Date: Sat, 13 Oct 2012 12:09:28 +0200 Subject: [PATCH] Comments. --- src/fr/neatmonster/nocheatplus/checks/moving/Passable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fr/neatmonster/nocheatplus/checks/moving/Passable.java b/src/fr/neatmonster/nocheatplus/checks/moving/Passable.java index 9f56822b..7ee8edb6 100644 --- a/src/fr/neatmonster/nocheatplus/checks/moving/Passable.java +++ b/src/fr/neatmonster/nocheatplus/checks/moving/Passable.java @@ -28,6 +28,8 @@ public class Passable extends Check { if (!from.isPassable()){ // Only allow moving further out of the block (still allows going round in circles :p) final Vector blockMiddle = new Vector(0.5 + from.getBlockX(), 0.5 + from.getBlockY(), 0.5 + from.getBlockZ()); + // TODO: Allow moving out of one block towards non-solid blocks (closest only ?). + // TODO: Allow moving out of half steps ? if (blockMiddle.distanceSquared(from.getVector()) < blockMiddle.distanceSquared(to.getVector())) { // Further check for the players location as possible set back. loc = player.getLocation();