mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-20 15:26:51 +00:00
Prevent NPE when world already exists
This commit is contained in:
1 parent
aafed9b1b7
commit
cec67484e5
1 file changed
+4
@@ -167,6 +167,10 @@ public class CommandIrisCreate extends MortarCommand
|
||||
}
|
||||
|
||||
World ww = world;
|
||||
if (ww == null){
|
||||
sender.sendMessage("World not created, can not finish");
|
||||
return true;
|
||||
}
|
||||
J.a(() ->
|
||||
{
|
||||
while(!b.get())
|
||||
|
||||
Reference in new issue
Block a user