Limit number of commands to display at once to 6

This commit is contained in:
William committed 2022-08-24 18:24:25 +01:00
1 parent 1c6902fc9e
commit efa3e21ed4
1 file changed
+1 -1
@@ -158,7 +158,7 @@ public class Cache {
Locales.escapeMineDown(locales.formatDescription(command.getDescription())))
.orElse(command.command))
.collect(Collectors.toList()),
getBaseList(locales, itemsPerPage)
getBaseList(locales, Math.min(itemsPerPage, 6))
.setHeaderFormat(locales.getRawLocale("command_list_title").orElse(""))
.setItemSeparator("\n").setCommand("/huskhomes:huskhomes help").build())
.getNearestValidPage(page);