From b6a7668f2575500e6f8cd3b5571b3f2c230ebe76 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Mon, 27 May 2019 16:14:10 +0300 Subject: [PATCH] Do not unidle when turning --- .../incoming/rooms/users/RoomUserLookAtPoint.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RoomUserLookAtPoint.java b/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RoomUserLookAtPoint.java index 817c7ef7..e93bf2d5 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RoomUserLookAtPoint.java +++ b/src/main/java/com/eu/habbo/messages/incoming/rooms/users/RoomUserLookAtPoint.java @@ -40,6 +40,9 @@ public class RoomUserLookAtPoint extends MessageHandler { if (roomUnit.cmdLay || roomUnit.hasStatus(RoomUnitStatus.LAY)) return; + if (roomUnit.isIdle()) + return; + int x = this.packet.readInt(); int y = this.packet.readInt(); @@ -50,17 +53,6 @@ public class RoomUserLookAtPoint extends MessageHandler { if (tile != null) { roomUnit.lookAtPoint(tile); - - UserIdleEvent event = new UserIdleEvent(habbo, UserIdleEvent.IdleReason.WALKED, false); - Emulator.getPluginManager().fireEvent(event); - - if (!event.isCancelled()) { - if (!event.idle) { - room.unIdle(habbo); - } - } - - room.sendComposer(new RoomUserStatusComposer(roomUnit).compose()); } } }