diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/lorenz/mod/mixins/MixinGuiContainer.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/lorenz/mod/mixins/MixinGuiContainer.java b/src/main/java/at/lorenz/mod/mixins/MixinGuiContainer.java index a0cf8fdbe..c9dc12fc5 100644 --- a/src/main/java/at/lorenz/mod/mixins/MixinGuiContainer.java +++ b/src/main/java/at/lorenz/mod/mixins/MixinGuiContainer.java @@ -41,8 +41,10 @@ public abstract class MixinGuiContainer extends GuiScreen { hook.onDrawSlotPost(slot, ci); } + @Inject(method = "handleMouseClick", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/multiplayer/PlayerControllerMP;windowClick(IIIILnet/minecraft/entity/player/EntityPlayer;)Lnet/minecraft/item/ItemStack;"), cancellable = true) private void onMouseClick(Slot slot, int slotId, int clickedButton, int clickType, CallbackInfo ci) { hook.onMouseClick(slot, slotId, clickedButton, clickType, ci); } + } |