diff options
author | efefury <69400149+efefury@users.noreply.github.com> | 2022-10-04 12:18:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 14:18:31 +0200 |
commit | 796f1a24d058ab49e9ef5e9fc3a30817c79950dd (patch) | |
tree | 613ebf9d76b7a5efaddd4e2950f0447a8be1b078 /src/main | |
parent | df9f5b86598e5d358463bcc770471a274027626d (diff) | |
download | NotEnoughUpdates-796f1a24d058ab49e9ef5e9fc3a30817c79950dd.tar.gz NotEnoughUpdates-796f1a24d058ab49e9ef5e9fc3a30817c79950dd.tar.bz2 NotEnoughUpdates-796f1a24d058ab49e9ef5e9fc3a30817c79950dd.zip |
no more kicking i think (#335)
Co-authored-by: nopo <nopotheemail@gmail.com>
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java | 6 |
1 files changed, 5 insertions, 1 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 f708fb5f..a24f4c84 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiContainer.java @@ -362,7 +362,11 @@ public abstract class MixinGuiContainer extends GuiScreen { BetterContainers.clickSlot(slotIn.getSlotIndex()); if (BetterContainers.isBlankStack(slotIn.slotNumber, slotIn.getStack())) { - $this.mc.playerController.windowClick($this.inventorySlots.windowId, slotId, 2, clickType, $this.mc.thePlayer); + GuiContainer chest = ((GuiContainer) Minecraft.getMinecraft().currentScreen); + Minecraft.getMinecraft().playerController.windowClick( + chest.inventorySlots.windowId, + slotId, 2, 3, Minecraft.getMinecraft().thePlayer + ); ci.cancel(); } else { Utils.playPressSound(); |