diff --git a/forge/forge_client/src/net/minecraft/src/forge/ForgeHooksClient.java b/forge/forge_client/src/net/minecraft/src/forge/ForgeHooksClient.java index 48fe22dd5..f75dbbcb8 100644 --- a/forge/forge_client/src/net/minecraft/src/forge/ForgeHooksClient.java +++ b/forge/forge_client/src/net/minecraft/src/forge/ForgeHooksClient.java @@ -77,7 +77,9 @@ public class ForgeHooksClient { } } + static int renderPass=-1; public static void beforeRenderPass(int pass) { + renderPass=pass; Tessellator.instance=Tessellator.firstInstance; Tessellator.renderingWorldRenderer=true; GL11.glBindTexture(3553 /* GL_TEXTURE_2D */, ModLoader @@ -89,6 +91,7 @@ public class ForgeHooksClient { } public static void afterRenderPass(int pass) { + renderPass=-1; inWorld=false; for(List l : renderTextureList) { // TODO: call appropriate client hooks diff --git a/forge/forge_client/src/net/minecraft/src/forge/MinecraftForgeClient.java b/forge/forge_client/src/net/minecraft/src/forge/MinecraftForgeClient.java index 37c6c35b5..86d685eea 100755 --- a/forge/forge_client/src/net/minecraft/src/forge/MinecraftForgeClient.java +++ b/forge/forge_client/src/net/minecraft/src/forge/MinecraftForgeClient.java @@ -51,4 +51,10 @@ public class MinecraftForgeClient { rb.renderBlockByRenderType(bl,i,j,k); ForgeHooksClient.afterBlockRender(bl,rb); } + + /** Get the current render pass. + */ + public static int getRenderPass() { + return ForgeHooksClient.renderPass; + } }