This commit is contained in:
AlfreviD 2022-04-10 23:57:13 +00:00
parent 5caf43ce1f
commit b892d688c4

View File

@ -1312,7 +1312,13 @@ public class RoomManager {
if (friend == null || friend.getHabboInfo() == null) continue; if (friend == null || friend.getHabboInfo() == null) continue;
Room room = friend.getHabboInfo().getCurrentRoom(); 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; if (rooms.size() >= limit) break;
} }