Fix index out of bounds error

This commit is contained in:
CocoTheOwner 2021-02-07 18:08:23 +01:00
parent 28430cc1c3
commit 8b7bb7faa2

View File

@ -92,7 +92,7 @@ public class CommandIrisPregen extends MortarCommand
{
Player p = sender.player();
World world;
if (args[1] == null) {
if (args.length != 2) {
world = p.getWorld();
} else {
try {