wait *that* was the thing preventing the entire terminal from displaying

main
Walker Fowlkes 7 months ago
parent b9be0549c9
commit 0e21b721bf

@ -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()

Loading…
Cancel
Save