diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-12-07 18:55:42 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-12-07 18:55:42 -0500 |
commit | f3306f13887a5f0284aee0fe9ebde40466428a0f (patch) | |
tree | 042a8a15f238e47dbb14fde18082fd74e80e1f7e /src/main/java/me | |
parent | c92a8a13bd83a6d47f399b6845b6ac7885e6ab54 (diff) | |
download | SkyblockMod-f3306f13887a5f0284aee0fe9ebde40466428a0f.tar.gz SkyblockMod-f3306f13887a5f0284aee0fe9ebde40466428a0f.tar.bz2 SkyblockMod-f3306f13887a5f0284aee0fe9ebde40466428a0f.zip |
Make detecting mouse clicks consistent
Diffstat (limited to 'src/main/java/me')
-rw-r--r-- | src/main/java/me/Danker/DankersSkyblockMod.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index 59704ea..3a627b9 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -2881,8 +2881,8 @@ public class DankersSkyblockMod @SubscribeEvent public void onGuiMouseInputPre(GuiScreenEvent.MouseInputEvent.Pre event) { if (!Utils.inSkyblock) return; - if (Mouse.getEventButton() != 0 && Mouse.getEventButton() != 1 && Mouse.getEventButton() != 2) return; // Left click or right click - if (!Mouse.isButtonDown(0) && !Mouse.isButtonDown(1) && !Mouse.isButtonDown(2)) return; + if (Mouse.getEventButton() != 0 && Mouse.getEventButton() != 1 && Mouse.getEventButton() != 2) return; // Left click, middle click or right click + if (!Mouse.getEventButtonState()) return; if (event.gui instanceof GuiChest) { Container containerChest = ((GuiChest) event.gui).inventorySlots; |