Fix chisel using its own render pass variable

This commit is contained in:
tterrag1098 committed 2015-07-02 00:01:26 -04:00
1 parent 279a5a69ab
commit bef24abe19
2 files changed
+4 -5

No files matched your search

@@ -9,7 +9,7 @@ import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.init.Blocks;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.client.MinecraftForgeClient;
import static org.lwjgl.opengl.GL11.*;
public class RendererMultiLayer implements ISimpleBlockRenderingHandler {
@@ -52,7 +52,7 @@ public class RendererMultiLayer implements ISimpleBlockRenderingHandler {
return false;
BlockMultiLayerBase block = (BlockMultiLayerBase) blck;
if (block.currentPass == 0) {
if (MinecraftForgeClient.getRenderPass() == 0) {
if (block.icon != null) {
renderer.overrideBlockTexture = block.icon;
renderer.renderStandardBlock(block, x, y, z);