From a4a8d78b1fe4c7cb0663b7a512dddff64ebf2cf1 Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Sun, 7 Feb 2021 18:15:05 +0100 Subject: [PATCH] Fix index out of bounds error x2 --- .../com/volmit/iris/manager/command/CommandIrisPregen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/volmit/iris/manager/command/CommandIrisPregen.java b/src/main/java/com/volmit/iris/manager/command/CommandIrisPregen.java index 863754a58..65a46ba22 100644 --- a/src/main/java/com/volmit/iris/manager/command/CommandIrisPregen.java +++ b/src/main/java/com/volmit/iris/manager/command/CommandIrisPregen.java @@ -118,11 +118,11 @@ public class CommandIrisPregen extends MortarCommand } else { - if (args[0] == null){ + if (args.length < 1){ sender.sendMessage("Please specify the size of the pregen and the name of the world. E.g. /ir pregen 5k world"); return true; } - if (args[1] == null){ + if (args.length < 2){ sender.sendMessage("Please specify the name of the world after the command. E.g. /ir pregen 5k world"); return true; }