From a9d7960405049a5f92ff64c9fd4960ae617b6e0d Mon Sep 17 00:00:00 2001 From: Yordi Date: Wed, 18 Jan 2023 09:55:51 +0100 Subject: [PATCH] Fix for being able to walk on furniture that has 8 rotations #1727 --- .../com/eu/habbo/habbohotel/rooms/RoomLayout.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 2f2b5fdb..5236e11b 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java @@ -612,6 +612,11 @@ public class RoomLayout { } } } + } else if (rotation == 1 || rotation == 3 || rotation == 5 || rotation == 7) { + RoomTile t = this.getTile(tile.getX(), tile.getY()); + if (t == null || t.getState() == RoomTileState.INVALID) { + return false; + } } } @@ -642,9 +647,13 @@ public class RoomLayout { } } } + } else if (rotation == 1 || rotation == 3 || rotation == 5 || rotation == 7) { + RoomTile t = this.getTile(tile.getX(), tile.getY()); + if (t != null) { + pointList.add(t); + } } } - return pointList; } }