aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui/elements/config
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-23 18:05:14 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-23 18:05:14 +0200
commita086a98cff6d5b327477fe7846495f1d392feebd (patch)
tree18f52aab6777c27a0e623921f863efb1c50fdb80 /src/main/java/cc/polyfrost/oneconfig/gui/elements/config
parentcc30afc4eb515c93b0d763e4347bee628c007372 (diff)
downloadOneConfig-a086a98cff6d5b327477fe7846495f1d392feebd.tar.gz
OneConfig-a086a98cff6d5b327477fe7846495f1d392feebd.tar.bz2
OneConfig-a086a98cff6d5b327477fe7846495f1d392feebd.zip
OC-23 some things
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/elements/config')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java
index 4be79c4..5ecaa9e 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigColorElement.java
@@ -74,7 +74,7 @@ public class ConfigColorElement extends BasicOption {
if (element.isClicked() && !element.isToggled()) {
OneConfigGui.INSTANCE.initColorSelector(new ColorSelector(color, InputUtils.mouseX(), InputUtils.mouseY()));
}
- if(OneConfigGui.INSTANCE.currentColorSelector != null) {
+ if (OneConfigGui.INSTANCE != null && OneConfigGui.INSTANCE.currentColorSelector != null) {
color = (OneConfigGui.INSTANCE.getColor());
}
setColor(color);