aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/anthonyhilyard/iceberg/events
diff options
context:
space:
mode:
authorAnthony Hilyard <anthony.hilyard@gmail.com>2023-01-14 16:03:02 -0800
committerAnthony Hilyard <anthony.hilyard@gmail.com>2023-01-14 16:03:02 -0800
commitb0d1aa6d5076738965f1f0fd9df98c6cd5bf946f (patch)
tree35a2e2b6ff94425459bead944b4b73b87d51c460 /src/main/java/com/anthonyhilyard/iceberg/events
parent7a93277b92f834c5a27f627cd0f873417cdbe95e (diff)
downloadIceberg-b0d1aa6d5076738965f1f0fd9df98c6cd5bf946f.tar.gz
Iceberg-b0d1aa6d5076738965f1f0fd9df98c6cd5bf946f.tar.bz2
Iceberg-b0d1aa6d5076738965f1f0fd9df98c6cd5bf946f.zip
Ported 1.1.4 changes from Forge.
Diffstat (limited to 'src/main/java/com/anthonyhilyard/iceberg/events')
-rw-r--r--src/main/java/com/anthonyhilyard/iceberg/events/RenderTooltipEvents.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/events/RenderTooltipEvents.java b/src/main/java/com/anthonyhilyard/iceberg/events/RenderTooltipEvents.java
index 622d3e0..c5a10a8 100644
--- a/src/main/java/com/anthonyhilyard/iceberg/events/RenderTooltipEvents.java
+++ b/src/main/java/com/anthonyhilyard/iceberg/events/RenderTooltipEvents.java
@@ -23,7 +23,7 @@ public final class RenderTooltipEvents
GatherResult result = new GatherResult(InteractionResult.PASS, maxWidth, tooltipElements);
for (RenderTooltipEvents.Gather callback : callbacks)
{
- result = callback.onGather(itemStack, screenWidth, screenHeight, tooltipElements, maxWidth, index);
+ result = callback.onGather(itemStack, screenWidth, screenHeight, result.tooltipElements, result.maxWidth, index);
if (result.result != InteractionResult.PASS)
{
@@ -38,7 +38,7 @@ public final class RenderTooltipEvents
PreExtResult result = new PreExtResult(InteractionResult.PASS, x, y, screenWidth, screenHeight, font);
for (RenderTooltipEvents.PreExt callback : callbacks)
{
- result = callback.onPre(stack, components, poseStack, x, y, screenWidth, screenHeight, font, comparison, index);
+ result = callback.onPre(stack, components, poseStack, result.x, result.y, screenWidth, screenHeight, result.font, comparison, index);
if (result.result != InteractionResult.PASS)
{