Permalink
Browse files

Stalagmites were being treated as solids.

  • Loading branch information...
Ri5ux committed Sep 28, 2018
1 parent 74ee8e8 commit 6004a03dff579e4034aa7ef72808446395de2f0e
Showing with 15 additions and 2 deletions.
  1. +15 −2 src/main/java/org/avp/block/BlockStalagmite.java
@@ -2,12 +2,13 @@
import java.util.Random;
import org.avp.AliensVsPredator;
import org.avp.BlockHandler;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
@@ -28,7 +29,7 @@ public boolean canPlaceBlockAt(World worldIn, BlockPos pos)
protected boolean canThisPlantGrowOn(IBlockState state)
{
return state.getBlock() == AliensVsPredator.blocks().unidirt || state.getBlock() == AliensVsPredator.blocks().unistone || state.getMaterial() == Material.GROUND || state.getMaterial() == Material.ROCK;
return state.getBlock() == BlockHandler.unidirt || state.getBlock() == BlockHandler.unistone || state.getMaterial() == Material.GROUND || state.getMaterial() == Material.ROCK;
}
@Override
@@ -74,4 +75,16 @@ public BlockRenderLayer getRenderLayer()
{
return BlockRenderLayer.CUTOUT;
}
@Override
public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, IBlockAccess worldIn, BlockPos pos)
{
return null;
}
@Override
public boolean isPassable(IBlockAccess worldIn, BlockPos pos)
{
return true;
}
}

0 comments on commit 6004a03

Please sign in to comment.