Add block param to createRenderContext. Set render bounds from blocks.

Closes #311
This commit is contained in:
tterrag1098 committed 2015-05-09 20:07:28 -04:00
1 parent 9aa5c25175
commit 9f0c9d0b6c
7 files changed
+15 -14

No files matched your search

@@ -41,7 +41,7 @@ public class RendererCTM implements ISimpleBlockRenderingHandler {
IVariationInfo var = ((ICarvable) block).getVariation(world, x, y, z, meta);
if (!rendererOld.hasOverrideBlockTexture() && var != null) {
RenderBlocks rb = var.getSubmapManager().createRenderContext(rendererOld, world);
RenderBlocks rb = var.getSubmapManager().createRenderContext(rendererOld, block, world);
if (rb != null && rb != rendererOld) {
rb.blockAccess = world;
if (rb instanceof RenderBlocksCTM) {