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 2015-06-11 11:00:31 +01:00 committed by Daniel Howard
parent acbb330214
commit 16be913abc

View file

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