diff --git a/plugin.yml b/plugin.yml index f092e653..2ab87d59 100644 --- a/plugin.yml +++ b/plugin.yml @@ -3,7 +3,7 @@ name: NoCheat author: Evenprime main: cc.co.evenprime.bukkit.nocheat.NoCheat -version: 1.07a +version: 1.07b softdepend: [ Permissions, CraftIRC ] diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java index abd52316..9a2a1315 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java @@ -396,12 +396,15 @@ public class MovingCheck extends Check { // in the move event) tells us if the server is still waiting for the clientside teleporting // to be executed. We are only interested in client's move events after it executed the // teleport, therefore just ignore all events before that. - if(data.teleportTo != null && data.teleportTo.distanceSquared(from) < 0.01D) { - return true; - } - else { - data.teleportTo = null; + if(data.teleportTo != null && data.teleportTo.getWorld().equals(from.getWorld())) { + if(data.teleportTo.distanceSquared(from) < 0.01D) { + return true; + } + else { + data.teleportTo = null; + } } + // Dead or in vehicles -> I don't care if(player.isDead() || data.insideVehicle || player.isInsideVehicle()) { return true;