aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-02 20:28:39 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-02 20:28:39 +0200
commit28227742d7ec116cf616fde0689ffdc8062a9f68 (patch)
treec658c14f156212e37953827702e6d307bcf71e65 /src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java
parent0ba6b9e25e5d69072b7a2496656818894864edb2 (diff)
downloadOneConfig-28227742d7ec116cf616fde0689ffdc8062a9f68.tar.gz
OneConfig-28227742d7ec116cf616fde0689ffdc8062a9f68.tar.bz2
OneConfig-28227742d7ec116cf616fde0689ffdc8062a9f68.zip
update lwjgl to 3.3.1
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java b/src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java
index ab8d708..054da16 100644
--- a/src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java
+++ b/src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java
@@ -21,7 +21,7 @@ public class InputUtils {
}
public static boolean isClicked() {
- return OneConfigGui.INSTANCE.mouseDown && !Mouse.isButtonDown(0);
+ return OneConfigGui.INSTANCE != null && OneConfigGui.INSTANCE.mouseDown && !Mouse.isButtonDown(0);
}
public static int mouseX() {