Get rid of the ugly RenderBlocksCTMFullbright, some other refactors

This commit is contained in:
tterrag1098 committed 2015-04-26 02:30:39 -04:00
1 parent 3ae753ebc3
commit 2f6b455514
20 files changed
+215 -534

No files matched your search

@@ -42,9 +42,11 @@ public class RendererCTM implements ISimpleBlockRenderingHandler {
if (!rendererOld.hasOverrideBlockTexture() && var != null) {
RenderBlocks rb = var.getSubmapManager().createRenderContext(rendererOld, world);
if (rb != null) {
if (rb.getClass() == RenderBlocksCTM.class) {
if (rb != null && rb != rendererOld) {
rb.blockAccess = world;
if (rb instanceof RenderBlocksCTM) {
((RenderBlocksCTM)rb).manager = (ISubmapManager<RenderBlocksCTM>) var.getSubmapManager();
((RenderBlocksCTM)rb).rendererOld = rendererOld;
}
return rb.renderStandardBlock(block, x, y, z);
}