Commit c54fad2f authored by Adam Gausmann's avatar Adam Gausmann

Fixed the "help" command reporting off-by-one page counts.

parent cad340a3
Pipeline #4279086 passed with stages
in 10 seconds
......@@ -104,7 +104,7 @@ public class CommandExecutorImpl {
}
}
int totalPages = commandList.size() / 10 + 1;
int totalPages = (commandList.size() + 9) / 10;
sender.sendChat("Help (Page " + page + " of " + totalPages + "):");
for (int i = 10 * (page - 1); i < 10 * page && i < commandList.size(); i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment