diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-11 15:09:23 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-11 15:09:23 +0200 |
commit | 47d0397a20b6065678cc597dc09d1bc3d05b8101 (patch) | |
tree | 44ff36443a4e6778bed8bb19d5b5f592781263f5 /src/main/java | |
parent | 60a232dc03bee82cc6fe0428bfcad6002623dd05 (diff) | |
download | OneConfig-47d0397a20b6065678cc597dc09d1bc3d05b8101.tar.gz OneConfig-47d0397a20b6065678cc597dc09d1bc3d05b8101.tar.bz2 OneConfig-47d0397a20b6065678cc597dc09d1bc3d05b8101.zip |
fix color alpha
Diffstat (limited to 'src/main/java')
-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 5efebdd..67488d7 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 @@ -39,7 +39,7 @@ public class ConfigColorElement extends BasicOption { public void draw(long vg, int x, int y) { if (!isEnabled()) RenderManager.setAlpha(vg, 0.5f); hexField.disable(!isEnabled()); - alphaField.disable(!isEnabled() || allowAlpha); + alphaField.disable(!isEnabled() || !allowAlpha); element.disable(!isEnabled()); int x1 = size == 1 ? x : x + 512; |