mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Closes #953
This commit is contained in:
parent
0d8f38710e
commit
a8371154ec
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue