Fixed non normal environments

This commit is contained in:
Daniel Mills 2020-12-20 18:32:57 -05:00
parent 63cd793407
commit 5a1d8348d8
2 changed files with 14 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public class IrisTerrainActuator extends EngineAssignedActuator<BlockData>
{ {
h.set(xf, i, zf, BEDROCK); h.set(xf, i, zf, BEDROCK);
} }
continue; continue;
} }

View File

@ -11,6 +11,8 @@ public interface INMSBinding
public Object getBiomeBase(World world, Biome biome); public Object getBiomeBase(World world, Biome biome);
public Object getBiomeBase(Object registry, Biome biome); public Object getBiomeBase(Object registry, Biome biome);
public boolean isBukkit();
default World createWorld(WorldCreator creator) default World createWorld(WorldCreator creator)
{ {
return getCreator().createWorld(creator); return getCreator().createWorld(creator);
@ -18,6 +20,17 @@ public interface INMSBinding
default World createWorld(WorldCreator creator, boolean loadSpawn) default World createWorld(WorldCreator creator, boolean loadSpawn)
{ {
if(!isBukkit())
{
if(creator.environment().equals(World.Environment.NORMAL))
{
return getCreator().createWorld(creator, loadSpawn);
}
return creator.createWorld();
}
return getCreator().createWorld(creator, loadSpawn); return getCreator().createWorld(creator, loadSpawn);
} }
} }