From 4aeb29ebd30fbfb4ba412399ae7b2a30d1636f62 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 2 Sep 2016 14:33:01 +1000 Subject: [PATCH] I suppose this makes it simpler. --- .../java/com/sk89q/worldedit/command/SchematicCommands.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java b/core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java index a590ee1f..77e15481 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java @@ -22,6 +22,7 @@ package com.sk89q.worldedit.command; import com.boydti.fawe.config.BBC; import com.boydti.fawe.config.Settings; import com.boydti.fawe.object.schematic.StructureFormat; +import com.boydti.fawe.util.MathMan; import com.sk89q.minecraft.util.commands.Command; import com.sk89q.minecraft.util.commands.CommandContext; import com.sk89q.minecraft.util.commands.CommandException; @@ -267,7 +268,9 @@ public class SchematicCommands { File[] files = new File[fileList.size()]; fileList.toArray(files); - + if (args.argsLength() > 0 && MathMan.isInteger(args.getString(0))) { + page = args.getInteger(0); + } int pageCount = files.length / SCHEMATICS_PER_PAGE + 1; if (page < 1) { BBC.SCHEMATIC_PAGE.send(actor, ">0");