mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Fix #824 ups
This commit is contained in:
parent
5caf43ce1f
commit
b892d688c4
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user