This commit is contained in:
Shadows_of_Fire 2019-02-27 14:42:38 -05:00
parent 0d8f38710e
commit a8371154ec
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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);
}
}
}