aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2023-10-08 17:02:28 +0200
committerGitHub <noreply@github.com>2023-10-08 17:02:28 +0200
commitd3b9774ffd8a62c8199d82a84e6a2e40dc98634d (patch)
treed4f1087ca2b85637d29233c15d9d4342f3efdd2f
parent49292f21ec47b5bc9aa934e5f1c305c9c77b0231 (diff)
downloadskyhanni-d3b9774ffd8a62c8199d82a84e6a2e40dc98634d.tar.gz
skyhanni-d3b9774ffd8a62c8199d82a84e6a2e40dc98634d.tar.bz2
skyhanni-d3b9774ffd8a62c8199d82a84e6a2e40dc98634d.zip
Fix double rendering of item tooltips with chat triggers (#539)
Fix double rendering of item tooltips with chat triggers #539
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/transformers/gui/MixinGuiContainer.java5
1 files changed, 3 insertions, 2 deletions
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) {