From 5b1eb3121e914080b374ccd872890251866e2d27 Mon Sep 17 00:00:00 2001 From: asofold Date: Sat, 29 Sep 2012 20:09:57 +0200 Subject: [PATCH] Bind yawrate checking to the angle permission for fight. --- src/fr/neatmonster/nocheatplus/checks/fight/FightListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/neatmonster/nocheatplus/checks/fight/FightListener.java b/src/fr/neatmonster/nocheatplus/checks/fight/FightListener.java index c72a8aad..2c51827c 100644 --- a/src/fr/neatmonster/nocheatplus/checks/fight/FightListener.java +++ b/src/fr/neatmonster/nocheatplus/checks/fight/FightListener.java @@ -123,7 +123,7 @@ public class FightListener implements Listener { final boolean worldChanged = !worldName.equals(data.lastWorld); // Improbable yaw: - if (Combined.checkYawRate(player, player.getLocation().getYaw(), now, worldName, cc.yawRateCheck)){ + if (Combined.checkYawRate(player, player.getLocation().getYaw(), now, worldName, cc.yawRateCheck && !player.hasPermission(Permissions.FIGHT_ANGLE))){ cancelled = true; }