From 0e21b721bf84c8ea1e9e4491fd209f10d8c24c71 Mon Sep 17 00:00:00 2001 From: Walker Fowlkes Date: Fri, 12 Apr 2024 18:00:11 -0700 Subject: [PATCH] wait *that* was the thing preventing the entire terminal from displaying --- .../java/net/brokenmoon/redcontrol/screen/TerminalScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/java/net/brokenmoon/redcontrol/screen/TerminalScreen.kt b/src/client/java/net/brokenmoon/redcontrol/screen/TerminalScreen.kt index 9646153..2ab3dfa 100644 --- a/src/client/java/net/brokenmoon/redcontrol/screen/TerminalScreen.kt +++ b/src/client/java/net/brokenmoon/redcontrol/screen/TerminalScreen.kt @@ -14,6 +14,7 @@ import net.minecraft.client.gl.Framebuffer import net.minecraft.client.gl.SimpleFramebuffer import net.minecraft.client.gui.DrawContext import net.minecraft.client.gui.screen.Screen +import net.minecraft.client.render.BufferRenderer import net.minecraft.client.render.VertexFormat.DrawMode import net.minecraft.client.render.VertexFormats import net.minecraft.network.PacketByteBuf @@ -140,7 +141,7 @@ class TerminalScreen(val te: TerminalEntity) : Screen(Text.translatable("block.r buf.vertex(0.0, sheight, 0.0).texture(0f, 0f).color(255, 255, 255, 255).next() buf.vertex(swidth, sheight, 0.0).texture(1f, 0f).color(255, 255, 255, 255).next() buf.vertex(swidth, 0.0, 0.0).texture(1f, 1f).color(255, 255, 255, 255).next() - buf.end() + BufferRenderer.draw(buf.end()) //BufferRenderer.postDraw(buf) //TODO: figure out why this is gone shader.unbind()