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;
    }

}

@@ -33,83 +33,8 @@
 r;%0A%0A
-import net.minecraft.block.Block;%0Aimport carpentersblocks.block.BlockBase;%0A
 impo
@@ -66,16 +66,16 @@
 r.Side;%0A
+
 import c
@@ -255,496 +255,8 @@
 F;%0A%0A
-    /**%0A     * Returns whether blocks using cover should render.%0A     */%0A    @Override%0A    protected boolean shouldRenderBlock(Block block)%0A    %7B%0A        if (renderAlphaOverride) %7B%0A            return renderPass == 1;%0A        %7D else %7B%0A            return renderBlocks.hasOverrideBlockTexture() %7C%7C%0A                    block.getRenderBlockPass() == renderPass %7C%7C%0A                    block instanceof BlockBase && renderPass == 0 %7C%7C%0A                    shouldRenderPattern();%0A        %7D%0A    %7D%0A%0A
     
@@ -428,16 +428,16 @@
 )%0A    %7B%0A
-
         
@@ -442,16 +442,39 @@
   return
+ renderAlphaOverride %7C%7C
  renderP

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