This commit is contained in:
Snaiker 2021-03-05 23:06:40 +00:00
parent db25a6d8ee
commit 968e980129

View File

@ -1176,14 +1176,10 @@ public class RoomManager {
continue; continue;
Habbo friend = Emulator.getGameEnvironment().getHabboManager().getHabbo(buddy.getId()); Habbo friend = Emulator.getGameEnvironment().getHabboManager().getHabbo(buddy.getId());
if (friend == null) if (friend == null || friend.getHabboInfo().getCurrentRoom() == null)
continue; continue;
Room friendRoom = friend.getHabboInfo().getCurrentRoom(); rooms.add(friend.getHabboInfo().getCurrentRoom());
if (friendRoom == null || rooms.contains(friendRoom))
continue;
rooms.add(friendRoom);
} }
Collections.sort(rooms); Collections.sort(rooms);