Fix book stand nameplate rendering
Build / build (push) Canceled after 0s

This commit is contained in:
dnorberg committed 2026-09-21 07:56:23 -04:00
1 parent ec82296624
commit 7b3bc328f2
3 files changed
+8 -3

No files matched your search

@@ -69,13 +69,15 @@ public final class BookStandRenderer implements BlockEntityRenderer<BookStandBlo
poseStack.pushPose();
poseStack.translate(0.5F, 1.6F, 0.5F);
poseStack.mulPose(entityRenderer.cameraOrientation());
poseStack.scale(-0.025F, -0.025F, 0.025F);
poseStack.scale(0.025F, -0.025F, 0.025F);
Matrix4f matrix = poseStack.last().pose();
float x = -font.width(name) / 2.0F;
int background = (int)(Minecraft.getInstance().options.getBackgroundOpacity(0.25F) * 255.0F) << 24;
font.drawInBatch(name, x, 0.0F, 0x20FFFFFF, false, matrix, bufferSource,
Font.DisplayMode.SEE_THROUGH, background, packedLight);
font.drawInBatch(name, x, 0.0F, 0xFFFFFFFF, false, matrix, bufferSource,
Font.DisplayMode.NORMAL, background, packedLight);
Font.DisplayMode.NORMAL, 0, packedLight);
poseStack.popPose();
}
}