forked from GeyserMC/Geyser
Fix exact color matches not being formatted correctly (Fixes #912)
This commit is contained in:
parent
75f2891ec0
commit
a16deb269a
1 changed files with 2 additions and 1 deletions
|
@ -391,7 +391,8 @@ public class MessageUtils {
|
||||||
|
|
||||||
for (Map.Entry<String, Integer> testColor : COLORS.entrySet()) {
|
for (Map.Entry<String, Integer> testColor : COLORS.entrySet()) {
|
||||||
if (testColor.getValue() == rgb) {
|
if (testColor.getValue() == rgb) {
|
||||||
return testColor.getKey();
|
closest = testColor.getKey();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
int testR = (testColor.getValue() >> 16) & 0xFF;
|
int testR = (testColor.getValue() >> 16) & 0xFF;
|
||||||
|
|
Loading…
Reference in a new issue