diff options
author | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-05 15:52:50 -0500 |
---|---|---|
committer | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-05 15:52:50 -0500 |
commit | 012e3dc70ff72590019d3f07602b0371c3b6f778 (patch) | |
tree | 3fea8e2f304ed28e45ee3bf1d53c3dc065e3393a /src | |
parent | 513127f6317afa778016678348e379f63c6e82bb (diff) | |
download | SkyblockMod-012e3dc70ff72590019d3f07602b0371c3b6f778.tar.gz SkyblockMod-012e3dc70ff72590019d3f07602b0371c3b6f778.tar.bz2 SkyblockMod-012e3dc70ff72590019d3f07602b0371c3b6f778.zip |
Allow middle mouse click for mouse events
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/me/Danker/DankersSkyblockMod.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index 41611d5..0a3e337 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -2771,12 +2771,12 @@ public class DankersSkyblockMod } } } - + @SubscribeEvent public void onGuiMouseInputPre(GuiScreenEvent.MouseInputEvent.Pre event) { if (!Utils.inSkyblock) return; - if (Mouse.getEventButton() != 0 && Mouse.getEventButton() != 1) return; // Left click or right click - if (!Mouse.isButtonDown(0) && !Mouse.isButtonDown(1)) 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 (event.gui instanceof GuiChest) { Container containerChest = ((GuiChest) event.gui).inventorySlots; |