diff --git a/src/main/java/prospector/traverse/blocks/base/BlockTraverseLeaves.java b/src/main/java/prospector/traverse/blocks/base/BlockTraverseLeaves.java index 04dc298..518da5b 100644 --- a/src/main/java/prospector/traverse/blocks/base/BlockTraverseLeaves.java +++ b/src/main/java/prospector/traverse/blocks/base/BlockTraverseLeaves.java @@ -59,14 +59,17 @@ public List onSheared(ItemStack item, IBlockAccess world, BlockPos po return list; } - public boolean isOpaqueCube(IBlockState state) { - return false; - } + @Override +public boolean isOpaqueCube(IBlockState state) { + return Blocks.LEAVES.getDefaultState().isOpaqueCube(); +} - @SideOnly(Side.CLIENT) - public BlockRenderLayer getBlockLayer() { - return Minecraft.getMinecraft().gameSettings.fancyGraphics ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID; - } +@Override +@SideOnly(Side.CLIENT) +public BlockRenderLayer getBlockLayer() { + return Blocks.LEAVES.getBlockLayer(); +} + @Override