Apply OF chunk building bug fix only during rendering (fixes #164)

This commit is contained in:
Jonas Herzig
2020-05-23 22:05:42 +02:00
parent d1ff98c76a
commit 363a8d595c

View File

@@ -45,6 +45,11 @@ public abstract class MixinShaderRenderChunk {
ci.setReturnValue(false);
} else if (!this.shouldBuild()) {
// this is the check which OF removed
// So, I think I figured out the reason why optifine applies this change: It's so chunks which are outside
// the server view distance are still rendered if they've previously compiled. The bug still stands but
// fixing it breaks OF's broken feature, so to reduce the impact of our fix, we only apply it during
// rendering where it affects us the most.
if (((EntityRendererHandler.IEntityRenderer) mc.gameRenderer).replayModRender_getHandler() == null) return;
ci.setReturnValue(false);
}
}