Attempt to create an nms world but fallback if needed

This commit is contained in:
Daniel Mills 2021-01-04 16:02:16 -05:00
parent 5a557e6f00
commit 791fd4bc55

View File

@ -292,6 +292,19 @@ public class Iris extends VolmitPlugin
@Override @Override
public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) public ChunkGenerator getDefaultWorldGenerator(String worldName, String id)
{ {
try
{
return INMS.get().createWorld(new IrisWorldCreator()
.productionMode()
.name(worldName)
.create()).getGenerator();
}
catch(Throwable e)
{
}
return new IrisWorldCreator() return new IrisWorldCreator()
.productionMode() .productionMode()
.name(worldName) .name(worldName)