Fix terrain not rendering with OF shaders enabled (fixes #122)

This was caused by us setting `needsTerrainUpdate` to false during the shadow
pass in order to break out of the ForceChunkLoading loop (cause OF doesn't
update chunks during the shadow pass). However, this inadvertently caused the
chunk updates to be skipped during the normal pass as well if there didn't
happen to be another reasons for updating.

To fix this, we simply move the shadow pass check into the ForceChunkLoading
mixin and skip the entire loop during the shadow pass.
This commit is contained in:
Jonas Herzig
2020-04-08 17:00:58 +02:00
parent 8f7d263ad9
commit c5476025ec
3 changed files with 9 additions and 74 deletions

View File

@@ -10,7 +10,6 @@
//#if MC>=10800
"MixinShaderEntityRenderer",
"MixinShaderRenderChunk",
"MixinShaderRenderGlobal",
//#else
//$$ "MixinShaders",
//#endif