Skip to content

Commit

Permalink
Fixed #303 hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
DisasterMoo committed Aug 15, 2019
1 parent bc950de commit f797538
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -46,6 +46,11 @@ public void generate(Random random, int chunkX, int chunkZ, World world, IChunkG
final int z = (chunkZ << 4) + random.nextInt(16) + 8;
final BlockPos pos = world.getTopSolidOrLiquidBlock(new BlockPos(x, 0, z));

if (world.getBlockState(pos).getMaterial().isLiquid() || !world.getBlockState(pos).getMaterial().isReplaceable())
{
return;
}

world.setBlockState(pos, BlockBerryBush.get(bush).getDefaultState());
}
}
Expand Down

0 comments on commit f797538

Please sign in to comment.