Merge branch 'dev' into 'dev'

Fix Issue #824

See merge request morningstar/Arcturus-Community!530
This commit is contained in:
Harmonic 2022-04-10 21:03:26 +00:00
commit 60ecf6226f

View File

@ -1323,7 +1323,7 @@ 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) && room.hasRights(habbo)) rooms.add(room);
if (rooms.size() >= limit) break;
}