mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Fixed non normal environments
This commit is contained in:
parent
63cd793407
commit
5a1d8348d8
@ -63,7 +63,7 @@ public class IrisTerrainActuator extends EngineAssignedActuator<BlockData>
|
|||||||
{
|
{
|
||||||
h.set(xf, i, zf, BEDROCK);
|
h.set(xf, i, zf, BEDROCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user