diff options
author | nea <nea@nea.moe> | 2023-10-08 17:00:59 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-10-08 17:00:59 +0200 |
commit | eecd49ef02a7be178ddc35801e1d18469ed92841 (patch) | |
tree | bb1963b6fa642b4c2b044ac604e73a67bd05199b | |
parent | 40f42921de591a2ced74f4c5d2b2d5e412a2b31a (diff) | |
download | NotEnoughUpdates-fixdoublerenderingitemtooltip.tar.gz NotEnoughUpdates-fixdoublerenderingitemtooltip.tar.bz2 NotEnoughUpdates-fixdoublerenderingitemtooltip.zip |
Fix auction house sort double rendering with chattriggersfixdoublerenderingitemtooltip
See: https://github.com/hannibal002/SkyHanni/pull/539
2 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java index f9e0a132..49ef0390 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java @@ -184,8 +184,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) { diff --git a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinThreadDownloadImageDataThread.java b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinThreadDownloadImageDataThread.java index aea52378..ac8868e6 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinThreadDownloadImageDataThread.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinThreadDownloadImageDataThread.java @@ -35,9 +35,11 @@ public class MixinThreadDownloadImageDataThread { method = "run", at = @At( value = "INVOKE", - target = "Ljava/net/HttpURLConnection;setDoOutput(Z)V" + target = "Ljava/net/HttpURLConnection;setDoOutput(Z)V", + remap = false ), - locals = LocalCapture.CAPTURE_FAILSOFT + locals = LocalCapture.CAPTURE_FAILSOFT, + remap = false ) public void patchHttpConnection(CallbackInfo ci, HttpURLConnection httpURLConnection) { ThreadDownloadImageHook.hookThreadImageConnection(httpURLConnection); |