aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-11 15:09:23 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-11 15:09:23 +0200
commit47d0397a20b6065678cc597dc09d1bc3d05b8101 (patch)
tree44ff36443a4e6778bed8bb19d5b5f592781263f5 /src
parent60a232dc03bee82cc6fe0428bfcad6002623dd05 (diff)
downloadOneConfig-47d0397a20b6065678cc597dc09d1bc3d05b8101.tar.gz
OneConfig-47d0397a20b6065678cc597dc09d1bc3d05b8101.tar.bz2
OneConfig-47d0397a20b6065678cc597dc09d1bc3d05b8101.zip
fix color alpha
Diffstat (limited to 'src')
-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 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;