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
@ -11,13 +11,26 @@ public interface INMSBinding
|
||||
public Object getBiomeBase(World world, Biome biome);
|
||||
public Object getBiomeBase(Object registry, Biome biome);
|
||||
|
||||
public boolean isBukkit();
|
||||
|
||||
default World createWorld(WorldCreator creator)
|
||||
{
|
||||
return getCreator().createWorld(creator);
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user