diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/gen/AAWorldGen.java b/src/main/java/de/ellpeck/actuallyadditions/mod/gen/AAWorldGen.java index 1b2cddbbf..3db235c7d 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/gen/AAWorldGen.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/gen/AAWorldGen.java @@ -85,7 +85,7 @@ public class AAWorldGen implements IWorldGenerator { StructureBoundingBox box = new StructureBoundingBox(x * 16 + 8, 0, z * 16 + 8, x * 16 + 8 + 15, 255, z * 16 + 8 + 15); if (chunkRand.nextInt(ConfigIntValues.LUSH_CAVE_CHANCE.getValue()) <= 0) { - BlockPos randPos = world.getTopSolidOrLiquidBlock(new BlockPos(x * 16 + chunkRand.nextInt(16) + 8, 0, z * 16 + chunkRand.nextInt(16) + 8)); + BlockPos randPos = world.getTopSolidOrLiquidBlock(new BlockPos(x * 16 + MathHelper.getInt(random, 6, 10), 0, z * 16 + MathHelper.getInt(random, 6, 10))); BlockPos pos = randPos.down(MathHelper.getInt(chunkRand, 15, randPos.getY() - 15)); this.caveGen.generate(world, chunkRand, pos, box); diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/gen/WorldGenLushCaves.java b/src/main/java/de/ellpeck/actuallyadditions/mod/gen/WorldGenLushCaves.java index 348970124..61e9f63e8 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/gen/WorldGenLushCaves.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/gen/WorldGenLushCaves.java @@ -130,7 +130,7 @@ public class WorldGenLushCaves{ IBlockState state = world.getBlockState(cratePos); if(state != null && state.getBlock().isLeaves(state, world, cratePos)){ - world.setBlockState(cratePos, InitBlocks.blockGiantChest.getDefaultState()); + world.setBlockState(cratePos, InitBlocks.blockGiantChest.getDefaultState(), 2); TileEntity tile = world.getTileEntity(cratePos); if(tile instanceof TileEntityGiantChest){ @@ -174,7 +174,7 @@ public class WorldGenLushCaves{ if(!this.checkIndestructable(world, posUp)){ IBlockState stateUp = world.getBlockState(posUp); if(!state.getBlock().isAir(state, world, pos) && stateUp.getBlock().isAir(stateUp, world, posUp)){ - world.setBlockState(pos, Blocks.GRASS.getDefaultState()); + world.setBlockState(pos, Blocks.GRASS.getDefaultState(), 2); } } }