From ba976f9a16c2a248d2fc1a4b7bc80ee9bf3a1d26 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sat, 16 Jul 2022 22:07:15 +0100 Subject: [PATCH] Fix monitor depth blocker being too small This allowed you to see transparent blocks through the bottom/right margins of the monitor when using the VBO renderer. --- .../computercraft/client/render/TileEntityMonitorRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dan200/computercraft/client/render/TileEntityMonitorRenderer.java b/src/main/java/dan200/computercraft/client/render/TileEntityMonitorRenderer.java index 236a60880..95ff7f502 100644 --- a/src/main/java/dan200/computercraft/client/render/TileEntityMonitorRenderer.java +++ b/src/main/java/dan200/computercraft/client/render/TileEntityMonitorRenderer.java @@ -224,7 +224,7 @@ public class TileEntityMonitorRenderer extends TileEntityRenderer FixedWidthFontRenderer.drawBlocker( matrix, bufferSource.getBuffer( RenderTypes.TERMINAL_BLOCKER ), - -xMargin, -yMargin, pixelWidth + xMargin, pixelHeight + yMargin + -xMargin, -yMargin, pixelWidth + xMargin * 2, pixelHeight + yMargin * 2 ); break; }