1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-14 12:10:30 +00:00

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.
This commit is contained in:
Jonathan Coates 2022-07-16 22:07:15 +01:00
parent 969feb4a1c
commit ba976f9a16
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -224,7 +224,7 @@ public class TileEntityMonitorRenderer extends TileEntityRenderer<TileMonitor>
FixedWidthFontRenderer.drawBlocker( FixedWidthFontRenderer.drawBlocker(
matrix, bufferSource.getBuffer( RenderTypes.TERMINAL_BLOCKER ), matrix, bufferSource.getBuffer( RenderTypes.TERMINAL_BLOCKER ),
-xMargin, -yMargin, pixelWidth + xMargin, pixelHeight + yMargin -xMargin, -yMargin, pixelWidth + xMargin * 2, pixelHeight + yMargin * 2
); );
break; break;
} }