diff options
author | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-07-21 13:30:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 14:30:05 +0200 |
commit | ead404e7e2c54a36f0dddbf87ab26a5342851f0f (patch) | |
tree | 800f243755b797bed28e8d8bc4bb0ddd30809c81 /src/main/java/cc/polyfrost/oneconfig/config | |
parent | 6fd6138f40f5ae1d0f924a7de382d889e277ee59 (diff) | |
download | OneConfig-ead404e7e2c54a36f0dddbf87ab26a5342851f0f.tar.gz OneConfig-ead404e7e2c54a36f0dddbf87ab26a5342851f0f.tar.bz2 OneConfig-ead404e7e2c54a36f0dddbf87ab26a5342851f0f.zip |
a couple fixes (#63)
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/core/OneColor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/core/OneColor.java b/src/main/java/cc/polyfrost/oneconfig/config/core/OneColor.java index 5a06637..8333269 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/core/OneColor.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/core/OneColor.java @@ -133,21 +133,21 @@ public final class OneColor { * Get the red value of the color (0-255). */ public int getRed() { - return argb >> 16 & 255; + return getRGB() >> 16 & 255; } /** * Get the green value of the color (0-255). */ public int getGreen() { - return argb >> 8 & 255; + return getRGB() >> 8 & 255; } /** * Get the blue value of the color (0-255). */ public int getBlue() { - return argb & 255; + return getRGB() & 255; } /** |