mirror of
https://github.com/naalit/slotlink.git
synced 2025-12-31 04:13:02 +00:00
fix slot widget not getting highlighted when hovering it
This commit is contained in:
parent
c76226662f
commit
1806ede1f7
1 changed files with 2 additions and 2 deletions
|
|
@ -34,12 +34,12 @@ abstract class SlotWidget<SH : ScreenHandler>(
|
|||
}
|
||||
|
||||
override fun renderTooltip(matrices: MatrixStack, mouseX: Int, mouseY: Int) {
|
||||
if (!stack.isEmpty && handler.cursorStack.isEmpty && !ReiAccess.isDraggingStack()) matrices.wrap {
|
||||
matrices.wrap {
|
||||
matrices.translate(0.0, 0.0, +256.0)
|
||||
val x = stackX
|
||||
val y = stackY
|
||||
fill(matrices, x, y, x + 16, y + 16, -2130706433 /*0x80ffffff fuck*/)
|
||||
client.apply {
|
||||
if (!stack.isEmpty && handler.cursorStack.isEmpty && !ReiAccess.isDraggingStack()) client.apply {
|
||||
val tooltips = stack.getTooltip(player) { options.advancedItemTooltips }
|
||||
appendTooltip(tooltips)
|
||||
currentScreen?.renderTooltip(matrices, tooltips, mouseX, mouseY)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue