Skip to content

Commit

Permalink
Fix error on fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Jul 17, 2024
1 parent 93b0491 commit 2e4ac98
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void emitBlockQuads(BlockAndTintGetter blockView, BlockState state, Block
model.emitBlockQuads(renderWorld, material, pos, randomSupplier, context);
context.popTransform();

CopycatRenderContextFabric copycatContext = new CopycatRenderContextFabric(quads, emitter);
CopycatRenderContextFabric copycatContext = new CopycatRenderContextFabric(quads, emitter, entry.key());
entry.part().emitCopycatQuads(entry.key(), state, copycatContext, material);

context.pushTransform(quad -> !occlusionData.isOccluded(quad.cullFace()));
Expand Down Expand Up @@ -221,7 +221,7 @@ public void emitBlockQuads(BlockAndTintGetter blockView, BlockState state, Block
model.emitBlockQuads(blockView, state, pos, randomSupplier, context);
context.popTransform();

CopycatRenderContextFabric copycatContext = new CopycatRenderContextFabric(quads, emitter);
CopycatRenderContextFabric copycatContext = new CopycatRenderContextFabric(quads, emitter, entry.key());
entry.part().emitCopycatQuads(entry.key(), state, copycatContext, material);

meshBuilder.build().outputTo(context.getEmitter());
Expand Down

0 comments on commit 2e4ac98

Please sign in to comment.