Pumpkins and melons can grow on special grass

This commit is contained in:
quat committed 2019-02-12 01:34:29 -05:00
1 parent d357279ca4
commit c5a874d4ea
1 file changed
+2 -1
@@ -11,6 +11,7 @@
package vazkii.botania.common.block;
import net.minecraft.block.BlockDirt;
import net.minecraft.block.BlockStem;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.BlockStateContainer;
@@ -111,7 +112,7 @@ public class BlockAltGrass extends BlockMod implements ILexiconable {
@Override
public boolean canSustainPlant(@Nonnull IBlockState state, @Nonnull IBlockAccess world, BlockPos pos, @Nonnull EnumFacing direction, IPlantable plantable) {
EnumPlantType type = plantable.getPlantType(world, pos.down());
return type == EnumPlantType.Plains || type == EnumPlantType.Beach;
return type == EnumPlantType.Plains || type == EnumPlantType.Beach || plantable instanceof BlockStem;
}
@SideOnly(Side.CLIENT)