Fix tooltips not being drawn in Terminal
This commit is contained in:
parent
584d8cd04e
commit
6b340740ce
|
@ -41,6 +41,11 @@ class TerminalScreen(handler: TerminalScreenHandler, playerInv: PlayerInventory,
|
||||||
drawTexture(matrixStack, x, y, 0, 0, backgroundWidth, backgroundHeight)
|
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
|
@ExperimentalUnsignedTypes
|
||||||
fun drawSlotUnderlay(matrixStack: MatrixStack, slot: Slot) {
|
fun drawSlotUnderlay(matrixStack: MatrixStack, slot: Slot) {
|
||||||
if (!handler.isBufferSlot(slot.id)) {
|
if (!handler.isBufferSlot(slot.id)) {
|
||||||
|
|
Loading…
Reference in New Issue