Prevent NPE when world already exists

This commit is contained in:
CocoTheOwner 2021-02-25 10:03:22 +01:00
parent aafed9b1b7
commit cec67484e5

View File

@ -167,6 +167,10 @@ public class CommandIrisCreate extends MortarCommand
} }
World ww = world; World ww = world;
if (ww == null){
sender.sendMessage("World not created, can not finish");
return true;
}
J.a(() -> J.a(() ->
{ {
while(!b.get()) while(!b.get())