From 71bdc196421c2ece39f7028379998da85f1ff7f5 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 26 Aug 2020 06:03:09 +0200 Subject: [PATCH] Schematic list deny negative numbers Signed-off-by: Lixfel --- .../de/steamwar/schematicsystem/commands/SchematicCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java index 61633e3..afd48d9 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java @@ -475,7 +475,7 @@ public class SchematicCommand implements CommandExecutor { }else pages = intPages; - if(currentPage >= pages) return; + if(currentPage >= pages || currentPage < 0) return; player.sendMessage("§eSeite " + (currentPage + 1) + " §8/ " + pages + " §8| §e" + schematicList.size() + " Schematics");