mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-24 00:47:31 +00:00
Fix index out of bounds error x2
This commit is contained in:
@@ -118,11 +118,11 @@ public class CommandIrisPregen extends MortarCommand
|
|||||||
}
|
}
|
||||||
else
|
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");
|
sender.sendMessage("Please specify the size of the pregen and the name of the world. E.g. /ir pregen 5k world");
|
||||||
return true;
|
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");
|
sender.sendMessage("Please specify the name of the world after the command. E.g. /ir pregen 5k world");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user