package carpentersblocks.renderer;

import net.minecraft.block.Block;
import carpentersblocks.block.BlockBase;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class BlockDeterminantRender extends BlockHandlerBase {

    protected float REDUCED_LIGHTNESS_OFFSET = -0.05F;

    /**
     * Returns whether blocks using cover should render.
     */
    @Override
    protected boolean shouldRenderBlock(Block block)
    {
        if (renderAlphaOverride) {
            return renderPass == 1;
        } else {
            return renderBlocks.hasOverrideBlockTexture() ||
                    block.getRenderBlockPass() == renderPass ||
                    block instanceof BlockBase && renderPass == 0 ||
                    shouldRenderPattern();
        }
    }

    /**
     * Returns whether non-cover blocks should render.
     * These will always be rendered on the opaque pass.
     */
    protected boolean shouldRenderOpaque()
    {
        return renderPass == 0;
    }

}

package carpentersblocks.renderer;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class BlockDeterminantRender extends BlockHandlerBase {

    protected float REDUCED_LIGHTNESS_OFFSET = -0.05F;

    /**
     * Returns whether non-cover blocks should render.
     * These will always be rendered on the opaque pass.
     */
    protected boolean shouldRenderOpaque()
    {
        return renderAlphaOverride || renderPass == 0;
    }

}

Fix bed pieces not rendering when z-fighting fix is enabled (whoops).
Fix bed pieces not rendering when z-fighting fix is enabled (whoops).
