Fix incorrect block position in BlockReed canPlaceBlockAt

block.canSustainPlant is called on the wrong block position.  It should be called on the block below (the 'soil' block).
This commit is contained in:
Daniel Howard authored and Daniel Howard committed 2015-06-12 10:14:22 +01:00
1 parent acbb330214
commit 16be913abc
1 file changed
+1 -1
@@ -13,7 +13,7 @@
public boolean func_176196_c(World p_176196_1_, BlockPos p_176196_2_)
{
Block block = p_176196_1_.func_180495_p(p_176196_2_.func_177977_b()).func_177230_c();
+ if (block.canSustainPlant(p_176196_1_, p_176196_2_, EnumFacing.UP, this)) return true;
+ if (block.canSustainPlant(p_176196_1_, p_176196_2_.func_177977_b(), EnumFacing.UP, this)) return true;
if (block == this)
{