Fix page indexes when on pages greater than 1

This commit is contained in:
extendedclip 2019-06-21 12:49:45 -04:00
parent 93f586a216
commit b9881eb70b

View File

@ -354,7 +354,7 @@ public class ExpansionCloudCommands implements CommandExecutor {
expansions.put(exp.getName(), exp); expansions.put(exp.getName(), exp);
} }
List<String> ce = expansions.keySet().stream().sorted().collect(Collectors.toList()); List<String> ce = expansions.keySet().stream().sorted().collect(Collectors.toList());
int i = 0; int i = page > 1 ? page * 10 : 0;
for (String name : ce) { for (String name : ce) {
if (expansions.get(name) == null) { if (expansions.get(name) == null) {
continue; continue;