From b892d688c47e05db4314ad4c04d5033026ad2efb Mon Sep 17 00:00:00 2001 From: AlfreviD Date: Sun, 10 Apr 2022 23:57:13 +0000 Subject: [PATCH] Fix #824 ups --- .../java/com/eu/habbo/habbohotel/rooms/RoomManager.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java index 05ddc66a..956ce0f2 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java @@ -1312,7 +1312,13 @@ public class RoomManager { if (friend == null || friend.getHabboInfo() == null) continue; Room room = friend.getHabboInfo().getCurrentRoom(); - if (room != null && !rooms.contains(room)) rooms.add(room); + if (room != null && !rooms.contains(room)) { + if(room.getState().equals(RoomState.INVISIBLE)) { + if(room.hasRights(habbo)) rooms.add(room); + } else { + rooms.add(room); + } + } if (rooms.size() >= limit) break; }