mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 10:43:14 +00:00
Attempt to create an nms world but fallback if needed
This commit is contained in:
parent
5a557e6f00
commit
791fd4bc55
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user