update navigator

This commit is contained in:
Layne 2021-03-08 12:40:41 -05:00
parent ea730baa11
commit abd395d8bd
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class NavigatorManager {
synchronized (this.publicCategories) {
this.publicCategories.clear();
try (Statement statement = connection.createStatement(); ResultSet set = statement.executeQuery("SELECT * FROM navigator_publiccats WHERE visible = '1'")) {
try (Statement statement = connection.createStatement(); ResultSet set = statement.executeQuery("SELECT * FROM navigator_publiccats WHERE visible = '1' ORDER BY order_num DESC")) {
while (set.next()) {
this.publicCategories.put(set.getInt("id"), new NavigatorPublicCategory(set));
}

View File

@ -25,7 +25,7 @@ public class NavigatorPublicFilter extends NavigatorFilter {
for (NavigatorPublicCategory category : Emulator.getGameEnvironment().getNavigatorManager().publicCategories.values()) {
if (!category.rooms.isEmpty()) {
resultLists.add(new SearchResultList(i, "", category.name, SearchAction.NONE, habbo.getHabboStats().navigatorWindowSettings.getListModeForCategory(category.name, category.image), habbo.getHabboStats().navigatorWindowSettings.getDisplayModeForCategory(category.name), category.rooms, true, showInvisible, DisplayOrder.ACTIVITY, category.order));
resultLists.add(new SearchResultList(i, "", category.name, SearchAction.NONE, habbo.getHabboStats().navigatorWindowSettings.getListModeForCategory(category.name, category.image), habbo.getHabboStats().navigatorWindowSettings.getDisplayModeForCategory(category.name), category.rooms, true, showInvisible, DisplayOrder.ORDER_NUM, category.order));
i++;
}
}