From 88eb1048f6731902b93a1f57c12812cb1851e448 Mon Sep 17 00:00:00 2001 From: Xephi59 Date: Thu, 9 Jul 2015 00:38:35 +0200 Subject: [PATCH] Allowing head rotation --- .../java/fr/xephi/authme/listener/AuthMePlayerListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java index 650aa3a91..049f17524 100644 --- a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java +++ b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java @@ -342,7 +342,8 @@ public class AuthMePlayerListener implements Listener { } if (!Settings.isMovementAllowed) { - event.setTo(event.getFrom()); + if (!event.getFrom().getBlock().equals(event.getTo().getBlock())) + event.setTo(event.getFrom()); return; }