From 6b340740cebfac5d9e4c7b0e3d65ff9a572ba6d9 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 14 Feb 2021 12:07:19 -0500 Subject: [PATCH] Fix tooltips not being drawn in Terminal --- .../phycon/network/block/terminal/TerminalScreen.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/net/shadowfacts/phycon/network/block/terminal/TerminalScreen.kt b/src/main/kotlin/net/shadowfacts/phycon/network/block/terminal/TerminalScreen.kt index 0852f68..6cf90b8 100644 --- a/src/main/kotlin/net/shadowfacts/phycon/network/block/terminal/TerminalScreen.kt +++ b/src/main/kotlin/net/shadowfacts/phycon/network/block/terminal/TerminalScreen.kt @@ -41,6 +41,11 @@ class TerminalScreen(handler: TerminalScreenHandler, playerInv: PlayerInventory, drawTexture(matrixStack, x, y, 0, 0, backgroundWidth, backgroundHeight) } + override fun render(matrixStack: MatrixStack, mouseX: Int, mouseY: Int, delta: Float) { + super.render(matrixStack, mouseX, mouseY, delta) + drawMouseoverTooltip(matrixStack, mouseX, mouseY) + } + @ExperimentalUnsignedTypes fun drawSlotUnderlay(matrixStack: MatrixStack, slot: Slot) { if (!handler.isBufferSlot(slot.id)) {