Update BlockSolidVines.java

This commit is contained in:
kevsgrove committed 2016-02-19 07:08:12 -08:00
1 parent ad5b7fd73b
commit 59939824a3
1 file changed
+9
@@ -41,6 +41,15 @@ public class BlockSolidVines extends BlockVine implements ILexiconable {
@Override
public AxisAlignedBB getCollisionBoundingBox(World w, BlockPos pos, IBlockState state) {
setBlockBoundsBasedOnState(w, pos);
if(state.getValue(EAST)) {
return new AxisAlignedBB(pos.add(maxX, minY, minZ), pos.add(maxX, maxY, maxZ));
}
if(state.getValue(SOUTH)) {
return new AxisAlignedBB(pos.add(minX, minY, maxZ), pos.add(maxX, maxY, maxZ));
}
return new AxisAlignedBB(pos.add(minX, minY, minZ), pos.add(maxX, maxY, maxZ));
}