From 34cf51c75a50e2a8b45ed3ba14cb65dbfcf1a5cc Mon Sep 17 00:00:00 2001 From: Adubbz Date: Wed, 3 Feb 2016 06:20:41 +1100 Subject: [PATCH] Fixed reeds generation placement --- src/main/java/biomesoplenty/common/init/ModBlockQueries.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/biomesoplenty/common/init/ModBlockQueries.java b/src/main/java/biomesoplenty/common/init/ModBlockQueries.java index 41f3cee05..7ad19cb8f 100644 --- a/src/main/java/biomesoplenty/common/init/ModBlockQueries.java +++ b/src/main/java/biomesoplenty/common/init/ModBlockQueries.java @@ -120,7 +120,9 @@ public class ModBlockQueries suitableForReed = BlockQuery.buildAnd().add(new IBlockPosQuery() { // reed needs the ground block to be water, but the block below that to NOT be water @Override public boolean matches(World world, BlockPos pos) { - return world.getBlockState(pos).getBlock() == Blocks.water && world.getBlockState(pos.down()).getBlock() != Blocks.water; + BlockPos groundPos = pos.down(); + return world.getBlockState(pos).getBlock() == Blocks.water && + (world.getBlockState(groundPos).getBlock() != Blocks.water && world.getBlockState(groundPos).getBlock().isSideSolid(world, groundPos, EnumFacing.UP)); } }).withLightAboveAtLeast(8).create(); rootsCanDigThrough = new BlockQueryMaterial(Material.air, Material.water, Material.ground, Material.grass, Material.sand, Material.clay, Material.plants, Material.leaves);