This commit is contained in:
Sauilitired 2019-04-01 11:14:47 +02:00
parent c450e4aed3
commit 0f8b7cd588
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678

View File

@ -96,7 +96,9 @@ import java.util.*;
return;
}
unsorted = new ArrayList<>(unsorted);
unsorted.removeIf(plot -> !plot.isBasePlot());
if (unsorted.size() > 1) {
unsorted.removeIf(plot -> !plot.isBasePlot());
}
if (page < 1 || page > unsorted.size()) {
Captions.NOT_VALID_NUMBER.send(player, "(1, " + unsorted.size() + ")");
return;