diff --git a/Kepler-Server/src/main/java/org/alexdev/kepler/messages/incoming/rooms/user/LOOKTO.java b/Kepler-Server/src/main/java/org/alexdev/kepler/messages/incoming/rooms/user/LOOKTO.java index 7b483255..763be6b5 100644 --- a/Kepler-Server/src/main/java/org/alexdev/kepler/messages/incoming/rooms/user/LOOKTO.java +++ b/Kepler-Server/src/main/java/org/alexdev/kepler/messages/incoming/rooms/user/LOOKTO.java @@ -45,6 +45,10 @@ public void handle(Player player, NettyRequest reader) { return; } + if (player.getRoomUser().getPosition().equals(player.getRoomUser().getRoom().getModel().getDoorLocation())) { + return; + } + if (player.getRoomUser().getRoom().isPublicRoom() && player.getRoomUser().getRoom().getModel().getDoorLocation().equals(player.getRoomUser().getPosition())) { return; }