mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-13 15:16:50 +01:00
Fix serialization apply the color white when it should not
This commit is contained in:
parent
f310d10e79
commit
eb21541424
@ -2720,7 +2720,9 @@ public class DisguiseUtilities {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
|
||||
for (BaseComponent component : components) {
|
||||
net.md_5.bungee.api.ChatColor color = component.getColor();
|
||||
net.md_5.bungee.api.ChatColor color = component.getColorRaw();
|
||||
|
||||
if (color != null) {
|
||||
String string = color.toString();
|
||||
|
||||
if (string.length() > 2) {
|
||||
@ -2728,6 +2730,7 @@ public class DisguiseUtilities {
|
||||
} else {
|
||||
builder.append(string);
|
||||
}
|
||||
}
|
||||
|
||||
if (component.isBold()) {
|
||||
builder.append(net.md_5.bungee.api.ChatColor.BOLD);
|
||||
|
Loading…
Reference in New Issue
Block a user