aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-12-07 18:55:42 -0500
committerbowser0000 <bowser0000@gmail.com>2020-12-07 18:55:42 -0500
commitf3306f13887a5f0284aee0fe9ebde40466428a0f (patch)
tree042a8a15f238e47dbb14fde18082fd74e80e1f7e /src
parentc92a8a13bd83a6d47f399b6845b6ac7885e6ab54 (diff)
downloadSkyblockMod-f3306f13887a5f0284aee0fe9ebde40466428a0f.tar.gz
SkyblockMod-f3306f13887a5f0284aee0fe9ebde40466428a0f.tar.bz2
SkyblockMod-f3306f13887a5f0284aee0fe9ebde40466428a0f.zip
Make detecting mouse clicks consistent
Diffstat (limited to 'src')
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java4
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;