From 4a9108ad5c1274eb24c0ae274817a2bb57995527 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 5 Jan 2024 03:44:43 +0100 Subject: Fix RenderTooltipEvents.POSTEXT not being affected by the PoseStack --- src/main/java/com/anthonyhilyard/iceberg/mixin/GuiGraphicsMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/anthonyhilyard/iceberg/mixin/GuiGraphicsMixin.java') diff --git a/src/main/java/com/anthonyhilyard/iceberg/mixin/GuiGraphicsMixin.java b/src/main/java/com/anthonyhilyard/iceberg/mixin/GuiGraphicsMixin.java index 1c34ed5..41ddb39 100644 --- a/src/main/java/com/anthonyhilyard/iceberg/mixin/GuiGraphicsMixin.java +++ b/src/main/java/com/anthonyhilyard/iceberg/mixin/GuiGraphicsMixin.java @@ -218,7 +218,7 @@ public class GuiGraphicsMixin storeLocals(font, components, x, y, positioner, info, tooltipWidth, tooltipHeight, tooltipWidth2, tooltipHeight2, postPos); } - @Inject(method = "renderTooltipInternal", at = @At(value = "TAIL")) + @Inject(method = "renderTooltipInternal", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/vertex/PoseStack;popPose()V", shift = Shift.BEFORE)) private void renderTooltipInternalTail(Font font, List components, int x, int y, ClientTooltipPositioner positioner, CallbackInfo info) { GuiGraphics self = (GuiGraphics)(Object)this; -- cgit