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 f699715d..fd8f1fe5 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java @@ -1289,7 +1289,7 @@ public class RoomManager { Collections.sort(rooms); - return rooms.subList(0, (rooms.size() > limit ? limit : rooms.size())); + return rooms.subList(0, (Math.min(rooms.size(), limit))); } public ArrayList getRoomsWithRights(Habbo habbo) {