From 1ea86cb5285ee9440f1bcad7ab8fbabde640f99c Mon Sep 17 00:00:00 2001 From: KrewsOrg Date: Fri, 3 Apr 2020 16:58:02 +0100 Subject: [PATCH] Changes to RoomLayout, makes more sense. --- src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java index 55fee2f7..2ffe4bbd 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java @@ -318,8 +318,8 @@ public class RoomLayout { } } - if (!this.room.isAllowWalkthrough() && !isWalktroughRetry) { - return this.findPath(oldTile, newTile, goalLocation, roomUnit, false); + if (this.room.isAllowWalkthrough() && isWalktroughRetry) { + return this.findPath(oldTile, newTile, goalLocation, roomUnit, true); } return null;