Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 00:00:41 +01:00
Fix exact color matches not being formatted correctly (Fixes #912)
Dieser Commit ist enthalten in:
Ursprung
75f2891ec0
Commit
a16deb269a
@ -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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren