From 28227742d7ec116cf616fde0689ffdc8062a9f68 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Mon, 2 May 2022 20:28:39 +0200 Subject: update lwjgl to 3.3.1 --- src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java') 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() { -- cgit