mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fix index out of bounds error x2
This commit is contained in:
parent
8b7bb7faa2
commit
a4a8d78b1f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user