Fixed melons/pumpkins for dirt
This commit is contained in:
parent
14105a4645
commit
ab6e0ca3fd
1 changed files with 5 additions and 0 deletions
|
@ -134,6 +134,11 @@ public class BlockBOPDirt extends Block implements IBOPBlock, ISustainsPlantType
|
||||||
@Override
|
@Override
|
||||||
public boolean canSustainPlant(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing direction, net.minecraftforge.common.IPlantable plantable)
|
public boolean canSustainPlant(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing direction, net.minecraftforge.common.IPlantable plantable)
|
||||||
{
|
{
|
||||||
|
if (plantable == Blocks.MELON_STEM || plantable == Blocks.PUMPKIN_STEM)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return this.canSustainPlantType(world, pos, plantable.getPlantType(world, pos.offset(direction)));
|
return this.canSustainPlantType(world, pos, plantable.getPlantType(world, pos.offset(direction)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue