Fix exact color matches not being formatted correctly (Fixes #912)

This commit is contained in:
rtm516 2020-07-07 15:09:24 +01:00
parent 75f2891ec0
commit a16deb269a

View file

@ -391,7 +391,8 @@ public class MessageUtils {
for (Map.Entry<String, Integer> testColor : COLORS.entrySet()) {
if (testColor.getValue() == rgb) {
return testColor.getKey();
closest = testColor.getKey();
break;
}
int testR = (testColor.getValue() >> 16) & 0xFF;