Skip to content

Commit

Permalink
Fix cascading worldgen lag (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Nov 12, 2019
1 parent 703a4dc commit e6e6a64
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ public void setGeneratedBlock(BlockTrillium trilliumIn) {

@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) {
int x = (chunkX * 16) + 8 + (random.nextInt(16) - 8);
int z = (chunkZ * 16) + 8 + (random.nextInt(16) - 8);
int y = 64;
BlockPos blockpos = new BlockPos(x, y, z);
int x = (chunkX * 16) + 8 + random.nextInt(16);
int z = (chunkZ * 16) + 8 + random.nextInt(16);
BlockPos blockpos = new BlockPos(x, 64, z);
if (BiomeDictionary.hasType(world.getBiome(blockpos), BiomeDictionary.Type.SWAMP)) {
for (int i = 0; i < 64; ++i) {
blockpos = new BlockPos(x, i, z);
Expand Down

0 comments on commit e6e6a64

Please sign in to comment.