diff options
-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(); |