Commit 672eee8d authored by Adam Gausmann's avatar Adam Gausmann

Merge branch 'help-patch' into 'master'

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



See merge request !9
parents cad340a3 c54fad2f
Pipeline #4279091 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