Fix index out of bounds error x2

This commit is contained in:
CocoTheOwner 2021-02-07 18:15:05 +01:00
parent 8b7bb7faa2
commit a4a8d78b1f

View File

@ -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;
}