Do not unidle when turning

This commit is contained in:
Alejandro 2019-05-27 16:14:10 +03:00
parent 48b4c4a9eb
commit b6a7668f25

View File

@ -40,6 +40,9 @@ public class RoomUserLookAtPoint extends MessageHandler {
if (roomUnit.cmdLay || roomUnit.hasStatus(RoomUnitStatus.LAY)) if (roomUnit.cmdLay || roomUnit.hasStatus(RoomUnitStatus.LAY))
return; return;
if (roomUnit.isIdle())
return;
int x = this.packet.readInt(); int x = this.packet.readInt();
int y = this.packet.readInt(); int y = this.packet.readInt();
@ -50,17 +53,6 @@ public class RoomUserLookAtPoint extends MessageHandler {
if (tile != null) { if (tile != null) {
roomUnit.lookAtPoint(tile); 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());
} }
} }
} }