diff options
-rw-r--r-- | build.gradle | 32 | ||||
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java | 1 | ||||
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/utils/InputUtils.java | 2 |
3 files changed, 18 insertions, 17 deletions
diff --git a/build.gradle b/build.gradle index b4bd386..70fe72b 100644 --- a/build.gradle +++ b/build.gradle @@ -74,22 +74,22 @@ dependencies { mappings("de.oceanlabs.mcp:mcp_stable:22-1.8.9") forge("net.minecraftforge:forge:1.8.9-11.15.1.2318-1.8.9") - lwjgl "org.lwjgl:lwjgl:3.3.0" - lwjgl "org.lwjgl:lwjgl-stb:3.3.0" - lwjgl "org.lwjgl:lwjgl-tinyfd:3.3.0" - lwjgl "org.lwjgl:lwjgl-nanovg:3.3.0" - lwjglNative "org.lwjgl:lwjgl:3.3.0:natives-windows" - lwjglNative "org.lwjgl:lwjgl-stb:3.3.0:natives-windows" - lwjglNative "org.lwjgl:lwjgl-tinyfd:3.3.0:natives-windows" - lwjglNative "org.lwjgl:lwjgl-nanovg:3.3.0:natives-windows" - lwjglNative "org.lwjgl:lwjgl:3.3.0:natives-linux" - lwjglNative "org.lwjgl:lwjgl-stb:3.3.0:natives-linux" - lwjglNative "org.lwjgl:lwjgl-tinyfd:3.3.0:natives-linux" - lwjglNative "org.lwjgl:lwjgl-nanovg:3.3.0:natives-linux" - lwjglNative "org.lwjgl:lwjgl:3.3.0:natives-macos" - lwjglNative "org.lwjgl:lwjgl-stb:3.3.0:natives-macos" - lwjglNative "org.lwjgl:lwjgl-tinyfd:3.3.0:natives-macos" - lwjglNative "org.lwjgl:lwjgl-nanovg:3.3.0:natives-macos" + lwjgl "org.lwjgl:lwjgl:3.3.1" + lwjgl "org.lwjgl:lwjgl-stb:3.3.1" + lwjgl "org.lwjgl:lwjgl-tinyfd:3.3.1" + lwjgl "org.lwjgl:lwjgl-nanovg:3.3.1" + lwjglNative "org.lwjgl:lwjgl:3.3.1:natives-windows" + lwjglNative "org.lwjgl:lwjgl-stb:3.3.1:natives-windows" + lwjglNative "org.lwjgl:lwjgl-tinyfd:3.3.1:natives-windows" + lwjglNative "org.lwjgl:lwjgl-nanovg:3.3.1:natives-windows" + lwjglNative "org.lwjgl:lwjgl:3.3.1:natives-linux" + lwjglNative "org.lwjgl:lwjgl-stb:3.3.1:natives-linux" + lwjglNative "org.lwjgl:lwjgl-tinyfd:3.3.1:natives-linux" + lwjglNative "org.lwjgl:lwjgl-nanovg:3.3.1:natives-linux" + lwjglNative "org.lwjgl:lwjgl:3.3.1:natives-macos" + lwjglNative "org.lwjgl:lwjgl-stb:3.3.1:natives-macos" + lwjglNative "org.lwjgl:lwjgl-tinyfd:3.3.1:natives-macos" + lwjglNative "org.lwjgl:lwjgl-nanovg:3.3.1:natives-macos" include lwjglJar.outputs.files } diff --git a/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java b/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java index 35fe40d..1b6123e 100644 --- a/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java +++ b/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java @@ -227,5 +227,6 @@ public class OneConfigGui extends GuiScreen { @Override public void onGuiClosed() { currentPage.finishUpAndClose(); + INSTANCE = null; } } 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() { |