Draw in-hand pocket computers with blending

It might be worth switching to RenderTypes here, rather than a pure
Tesselator, but this'll do for now.

Fixes Zundrel/cc-tweaked-fabric#20.
This commit is contained in:
SquidDev 2020-11-01 11:12:28 +00:00
parent 17a9329207
commit a6fcfb6af2
1 changed files with 1 additions and 1 deletions

View File

@ -115,6 +115,7 @@ protected void renderItem( MatrixStack transform, IRenderTypeBuffer render, Item
private static void renderFrame( Matrix4f transform, ComputerFamily family, int colour, int width, int height )
{
RenderSystem.enableBlend();
Minecraft.getInstance().getTextureManager()
.bindTexture( colour != -1 ? ComputerBorderRenderer.BACKGROUND_COLOUR : ComputerBorderRenderer.getTexture( family ) );
@ -133,7 +134,6 @@ private static void renderFrame( Matrix4f transform, ComputerFamily family, int
private static void renderLight( Matrix4f transform, int colour, int width, int height )
{
RenderSystem.enableBlend();
RenderSystem.disableTexture();
float r = ((colour >>> 16) & 0xFF) / 255.0f;