9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2026-01-02 05:46:35 +00:00
This commit is contained in:
Daniel Mills
2020-10-28 02:10:59 -04:00
parent 6bbe1c8518
commit aa7a1ddd4e
4 changed files with 168 additions and 81 deletions

View File

@@ -139,6 +139,11 @@ public abstract class ContextualTerrainProvider implements TerrainProvider, List
public IrisBiome loadBiome(String i)
{
if(getData() == null)
{
return Iris.globaldata.getBiomeLoader().load(i);
}
return getData().getBiomeLoader().load(i);
}

View File

@@ -45,7 +45,18 @@ public class GenLayerUpdate extends BlockPopulator
@Override
public void populate(World w, Random r, Chunk c)
{
AtomicSliverMap map = gen.getParallaxChunk(c.getX(), c.getZ());
AtomicSliverMap map = null;
try
{
map = gen.getParallaxChunk(c.getX(), c.getZ());
}
catch(Throwable e)
{
map = new AtomicSliverMap();
}
RNG rx = rng.nextParallelRNG(c.getX() + r.nextInt()).nextParallelRNG(c.getZ() + r.nextInt());
if(gen.getDimension().isVanillaCaves())