aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnthony Hilyard <anthony.hilyard@gmail.com>2021-11-01 13:57:47 -0700
committerAnthony Hilyard <anthony.hilyard@gmail.com>2021-11-01 13:57:47 -0700
commit1a86b08671478a158a7561bf6f32da760acc490c (patch)
treedce5cd99a3a800d743209a5a05275f3a0e3d37ba /src/main/java
parent1ac3356e7fb70f2d09144498c73ff67e79b43c96 (diff)
downloadIceberg-1a86b08671478a158a7561bf6f32da760acc490c.tar.gz
Iceberg-1a86b08671478a158a7561bf6f32da760acc490c.tar.bz2
Iceberg-1a86b08671478a158a7561bf6f32da760acc490c.zip
Fixed an issue with post render tooltip event having incorrect position
values.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/anthonyhilyard/iceberg/mixin/ScreenMixin.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/mixin/ScreenMixin.java b/src/main/java/com/anthonyhilyard/iceberg/mixin/ScreenMixin.java
index 4f6625b..98c8a27 100644
--- a/src/main/java/com/anthonyhilyard/iceberg/mixin/ScreenMixin.java
+++ b/src/main/java/com/anthonyhilyard/iceberg/mixin/ScreenMixin.java
@@ -142,7 +142,7 @@ public class ScreenMixin extends AbstractContainerEventHandler
if (hoveredSlot != null)
{
ItemStack tooltipStack = hoveredSlot.getItem();
- RenderTooltipEvents.POST.invoker().onPost(tooltipStack, components, poseStack, x + 12, y - 12, font, tooltipWidth, tooltipHeight, false);
+ RenderTooltipEvents.POST.invoker().onPost(tooltipStack, components, poseStack, postX, postY, font, tooltipWidth, tooltipHeight, false);
}
}
}