3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-01 23:50:11 +02:00

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

Dieser Commit ist enthalten in:
rtm516 2020-07-07 15:09:24 +01:00
Ursprung 75f2891ec0
Commit a16deb269a

Datei anzeigen

@ -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;