mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
replace to math min
This commit is contained in:
parent
0a4d934c10
commit
cb3486418d
@ -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<Room> getRoomsWithRights(Habbo habbo) {
|
||||
|
Loading…
Reference in New Issue
Block a user