aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-05-10 22:49:52 +0900
committersyeyoung <cyong06@naver.com>2021-05-10 22:49:52 +0900
commit241e11397ba26ad337633fbd9a9e096795605f47 (patch)
tree6391f598424604701b4651ab1c05780272a44951 /src/main/java/kr/syeyoung
parent89570391657bd23e06c8331639fc8f4c4daaafee (diff)
downloadSkyblock-Dungeons-Guide-241e11397ba26ad337633fbd9a9e096795605f47.tar.gz
Skyblock-Dungeons-Guide-241e11397ba26ad337633fbd9a9e096795605f47.tar.bz2
Skyblock-Dungeons-Guide-241e11397ba26ad337633fbd9a9e096795605f47.zip
press any key to close chest no longer closes when swiping mouse.
Diffstat (limited to 'src/main/java/kr/syeyoung')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeaturePressAnyKeyToCloseChest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeaturePressAnyKeyToCloseChest.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeaturePressAnyKeyToCloseChest.java
index c2113120..e0dc7f97 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeaturePressAnyKeyToCloseChest.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeaturePressAnyKeyToCloseChest.java
@@ -30,6 +30,7 @@ import net.minecraft.client.gui.inventory.GuiChest;
import net.minecraft.inventory.ContainerChest;
import net.minecraft.inventory.IInventory;
import net.minecraftforge.client.event.GuiScreenEvent;
+import org.lwjgl.input.Mouse;
public class FeaturePressAnyKeyToCloseChest extends SimpleFeature implements KeyInputListener, GuiClickListener {
public FeaturePressAnyKeyToCloseChest() {
@@ -66,6 +67,7 @@ public class FeaturePressAnyKeyToCloseChest extends SimpleFeature implements Key
GuiScreen screen = Minecraft.getMinecraft().currentScreen;
if (!isEnabled()) return;
if (!DungeonsGuide.getDungeonsGuide().getSkyblockStatus().isOnDungeon()) return;
+ if (Mouse.getEventButton() == -1) return;
if (screen instanceof GuiChest){
ContainerChest ch = (ContainerChest) ((GuiChest)screen).inventorySlots;