Skip to content

Commit

Permalink
Fixes #5607: Use different render layer for molecular assembler power…
Browse files Browse the repository at this point in the history
…-lights to make the crafting particles visible again.
  • Loading branch information
shartte committed Oct 28, 2021
1 parent f82ce34 commit 31a3370
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ private void renderPowerLight(PoseStack ms, MultiBufferSource bufferIn, int comb
return;
}

VertexConsumer buffer = bufferIn.getBuffer(RenderType.translucent());
// tripwire layer has the shader-property we're looking for:
// alpha testing
// translucency
VertexConsumer buffer = bufferIn.getBuffer(RenderType.tripwire());

// TODO 1.17: Verify that the custom render type is no longer needed. The shader used for the translucent layer
// certainly doesn't use alpha testing, making it look like it will not work.
minecraft.getBlockRenderer().getModelRenderer().renderModel(ms.last(), buffer, null,
lightsModel, 1, 1, 1, combinedLightIn, combinedOverlayIn);
Expand Down

0 comments on commit 31a3370

Please sign in to comment.