Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
Don't process LOOKTO when inside doorway
Browse files Browse the repository at this point in the history
  • Loading branch information
Quackster committed Dec 13, 2021
1 parent 8e82e30 commit fa0fef4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa0fef4

Please sign in to comment.