From 4be2f0a8baa87d79f496802a2788e0c92d2f8c8c Mon Sep 17 00:00:00 2001 From: KrewsOrg Date: Fri, 3 Apr 2020 16:38:23 +0100 Subject: [PATCH] Fix Room Blocking. Thanks #TheJava for helping. --- src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java | 3 +-- 1 file changed, 1 insertion(+), 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 03a4a382..55fee2f7 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java @@ -300,7 +300,6 @@ public class RoomLayout { double height = currentAdj.getStackHeight() - current.getStackHeight(); if (!ALLOW_FALLING && height < -MAXIMUM_STEP_HEIGHT) continue; if (currentAdj.state == RoomTileState.OPEN && height > MAXIMUM_STEP_HEIGHT) continue; - if (currentAdj.hasUnits() && ((!isWalktroughRetry && !this.room.isAllowWalkthrough()) || currentAdj.equals(goalLocation))) { closedList.add(currentAdj); openList.remove(currentAdj); @@ -320,7 +319,7 @@ public class RoomLayout { } if (!this.room.isAllowWalkthrough() && !isWalktroughRetry) { - return this.findPath(oldTile, newTile, goalLocation, roomUnit, true); + return this.findPath(oldTile, newTile, goalLocation, roomUnit, false); } return null;