From d3b9774ffd8a62c8199d82a84e6a2e40dc98634d Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 8 Oct 2023 17:02:28 +0200 Subject: Fix double rendering of item tooltips with chat triggers (#539) Fix double rendering of item tooltips with chat triggers #539 --- .../skyhanni/mixins/transformers/gui/MixinGuiContainer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/MixinGuiContainer.java b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/MixinGuiContainer.java index 02270a522..ed106f6f1 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/MixinGuiContainer.java +++ b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/MixinGuiContainer.java @@ -54,8 +54,9 @@ public abstract class MixinGuiContainer extends GuiScreen { @Inject(method = "drawScreen", at = @At( value = "INVOKE", - target = "Lnet/minecraft/client/renderer/GlStateManager;popMatrix()V", - shift = At.Shift.AFTER + target = "Lnet/minecraft/entity/player/InventoryPlayer;getItemStack()Lnet/minecraft/item/ItemStack;", + shift = At.Shift.BEFORE, + ordinal = 1 ) ) public void drawScreen_after(int mouseX, int mouseY, float partialTicks, CallbackInfo ci) { -- cgit