diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-23 18:05:14 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-05-23 18:05:14 +0200 |
commit | a086a98cff6d5b327477fe7846495f1d392feebd (patch) | |
tree | 18f52aab6777c27a0e623921f863efb1c50fdb80 /src/main/java/cc/polyfrost/oneconfig/gui/elements/config | |
parent | cc30afc4eb515c93b0d763e4347bee628c007372 (diff) | |
download | OneConfig-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.java | 2 |
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); |