From 6e523ee46ecddcd27508d4bc3bf6de34f14d9caf Mon Sep 17 00:00:00 2001 From: asofold Date: Fri, 14 Dec 2012 10:49:37 +0100 Subject: [PATCH] More logical order. --- .../nocheatplus/checks/moving/MovingListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java index 4551bb7a..57e89d72 100644 --- a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java +++ b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java @@ -238,9 +238,10 @@ public class MovingListener extends CheckListener{ // TODO: Add something to guess the best set back location (possibly data.guessSetBack(Location)). target = loc; } - target.setPitch(loc.getPitch()); - target.setYaw(loc.getYaw()); if (target != null){ + // Actually this should not possibly be null, this is a block for "future" purpose, feel free to criticize it. + target.setPitch(loc.getPitch()); + target.setYaw(loc.getYaw()); if (sfCheck && noFall.isEnabled(player)){ // Check if to deal damage. double y = loc.getY();