Made BOP lilypads non-collidable

This commit is contained in:
Forstride 2016-02-12 20:22:25 -05:00
parent 67f02abc15
commit c482d36227
2 changed files with 10 additions and 1 deletions

View File

@ -18,11 +18,13 @@ import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.ItemBlock;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
import net.minecraft.util.IStringSerializable;
import net.minecraft.world.ColorizerFoliage;
import net.minecraft.world.ColorizerGrass;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeColorHelper;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@ -98,6 +100,13 @@ public class BlockBOPLilypad extends BlockLilyPad implements IBOPBlock
return net.minecraftforge.common.EnumPlantType.Water;
}
// no collision box - you can walk straight through them
@Override
public AxisAlignedBB getCollisionBoundingBox(World worldIn, BlockPos pos, IBlockState state)
{
return null;
}
@Override
@SideOnly(Side.CLIENT)
public int getBlockColor()

View File

@ -305,7 +305,7 @@ tile.leaves_2.pink_cherry_leaves.name=Pink Cherry Leaves
tile.leaves_2.white_cherry_leaves.name=White Cherry Leaves
tile.leaves_2.maple_leaves.name=Maple Leaves
tile.leaves_3.hellbark_leaves.name=Hellbark Leaves
tile.leaves_3.flowering_leaves.name=Flowering Leaves
tile.leaves_3.flowering_leaves.name=Flowering Oak Leaves
tile.leaves_3.jacaranda_leaves.name=Jacaranda Leaves
tile.leaves_3.sacred_oak_leaves.name=Sacred Oak Leaves
tile.leaves_4.mangrove_leaves.name=Mangrove Leaves