This commit is contained in:
Daniel Mills 2020-01-16 04:12:48 -05:00
parent 75d9bf458a
commit c47526ce8e
2 changed files with 9 additions and 10 deletions

View File

@ -133,7 +133,7 @@ public class IrisGenerator extends ParallelChunkGenerator
public void onInit(World world, Random random)
{
this.world = world;
rTerrain = new RNG(world.getSeed() + 1024);
rTerrain = new RNG(world.getSeed());
glBase = new GenLayerBase(this, world, random, rTerrain.nextParallelRNG(1));
glLNoise = new GenLayerLayeredNoise(this, world, random, rTerrain.nextParallelRNG(2));
glBiome = new GenLayerBiome(this, world, random, rTerrain.nextParallelRNG(4), dim.getBiomes());
@ -159,6 +159,8 @@ public class IrisGenerator extends ParallelChunkGenerator
}
}
}
L.i("Signature = " + world.getSeed() + " + " + glBiome.getBiome(0, 0).getRealBiome().ordinal() +" + "+ computeHeight(0, 0, new ChunkPlan(), biome("Plains")));
}
@Override

View File

@ -53,17 +53,14 @@ public abstract class ParallelChunkGenerator extends ChunkGenerator
genPool = Iris.getController(ExecutionController.class).getExecutor(world);
}
if(this.world == null)
{
ready = false;
}
if(this.world != null && world.getSeed() != this.world.getSeed())
{
for(int i = 0; i < 16; i++)
{
for(int j = 0; j < 16; j++)
{
data.setBlock(i, 0, j, Material.YELLOW_GLAZED_TERRACOTTA);
}
}
return data.toChunkData();
ready = false;
}
this.world = world;