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 b2a394741f
commit 8a5645760b
7 files changed
+15 -14

No files matched your search

@@ -49,11 +49,11 @@ public class SubmapManagerSlab implements ISubmapManager<RenderBlocksCTM> {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocksCTM createRenderContext(RenderBlocks rendererOld, IBlockAccess world) {
public RenderBlocksCTM createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
if (rb == null) {
rb = new RenderBlocksCTM();
}
rb.renderMaxY = 1f / 2f;
rb.setRenderBoundsFromBlock(block);
rb.submap = submap;
rb.submapSmall = submapSmall;
return rb;