mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Prevent NPE when world already exists
This commit is contained in:
parent
aafed9b1b7
commit
cec67484e5
@ -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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user