mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-11-26 04:25:18 +01:00
Fix page indexes when on pages greater than 1
This commit is contained in:
parent
93f586a216
commit
b9881eb70b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user