fix IModelData being swallowed by renderer

This commit is contained in:
octarine-noise
2021-04-26 13:39:09 +02:00
parent 8a82f3772f
commit c668713051
2 changed files with 5 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ fun renderWorldBlock(dispatcher: BlockRendererDispatcher,
): Boolean {
// build context
val blockCtx = CachedBlockCtx(reader, pos)
val renderCtx = RenderCtx(dispatcher, buffer, layer, random)
val renderCtx = RenderCtx(dispatcher, buffer, layer, random, modelData)
lightingCtx.reset(blockCtx)
val combinedCtx = CombinedContext(blockCtx, renderCtx, lightingCtx)