Skip to content

Commit

Permalink
Fix weird worldgen bug by expanding the generation area
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgehog1029 committed May 17, 2020
1 parent b212383 commit a1acfa0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public void generate(Random random, int chunkX, int chunkZ, World world, IChunkG
}

private static void replaceBlocksIn(World world, int chunkX, int chunkZ, HashMap<IBlockState, Block> blockReplaceMap) {
for (int x = 0; x < 16; x++) {
for (int z = 0; z < 16; z++) {
for (int x = 0; x < 30; x++) {
for (int z = 0; z < 30; z++) {
BlockPos bottom = new BlockPos(chunkX + x, 0, chunkZ + z);
int maxY = world.getTopSolidOrLiquidBlock(bottom).getY();

Expand Down

0 comments on commit a1acfa0

Please sign in to comment.