mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-23 17:19:16 +00:00
Attempt to create an nms world but fallback if needed
This commit is contained in:
@@ -292,6 +292,19 @@ public class Iris extends VolmitPlugin
|
||||
@Override
|
||||
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()
|
||||
.productionMode()
|
||||
.name(worldName)
|
||||
|
||||
Reference in New Issue
Block a user