From 0f8b7cd588097d2d785561cb5b94ebd035d0edeb Mon Sep 17 00:00:00 2001 From: Sauilitired Date: Mon, 1 Apr 2019 11:14:47 +0200 Subject: [PATCH] fixes #2211 --- .../intellectualsites/plotsquared/plot/commands/Visit.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Visit.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Visit.java index e8ebfa642..9217d0523 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Visit.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Visit.java @@ -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;