From 50f0dc7fb88fc93d57d0391de6fbee024eac66c6 Mon Sep 17 00:00:00 2001 From: ArpyAge Date: Tue, 27 Sep 2022 00:01:55 +0200 Subject: [PATCH] Fixed staff picks error --- .../incoming/navigator/RequestNewNavigatorRoomsEvent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/messages/incoming/navigator/RequestNewNavigatorRoomsEvent.java b/src/main/java/com/eu/habbo/messages/incoming/navigator/RequestNewNavigatorRoomsEvent.java index f02be39c..6c527b46 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/navigator/RequestNewNavigatorRoomsEvent.java +++ b/src/main/java/com/eu/habbo/messages/incoming/navigator/RequestNewNavigatorRoomsEvent.java @@ -91,7 +91,8 @@ public class RequestNewNavigatorRoomsEvent extends MessageHandler { List resultLists2 = filter.getResult(this.client.getHabbo(), field, part, category != null ? category.getId() : -1); List resultLists = new ArrayList<>(); for(SearchResultList searchResultList : resultLists2) { - List rooms = (ArrayList)((ArrayList)searchResultList.rooms).clone(); + List rooms = new ArrayList<>(); + rooms.addAll(searchResultList.rooms); resultLists.add(new SearchResultList(searchResultList.order, searchResultList.code, searchResultList.query, searchResultList.action, searchResultList.mode, searchResultList.hidden, rooms, searchResultList.filter, searchResultList.showInvisible, searchResultList.displayOrder, searchResultList.categoryOrder)); } filter.filter(field.field, part, resultLists);