mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-18 19:49:12 +00:00
Add block param to createRenderContext. Set render bounds from blocks.
Closes #311
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user