mirror of
https://code.chipmunk.land/ChomeNS/chipmunkmod.git
synced 2025-11-13 17:36:16 +00:00
fix: "That nickname is too long." for RainbowName
This commit is contained in:
parent
117f52583b
commit
3830cde2a7
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ public class RainbowName {
|
|||
for (final char character : displayName.toCharArray()) {
|
||||
final String color = String.format("%06x", ColorUtilities.hsvToRgb(hue, 100, 100));
|
||||
component = component.append(Component.text(character).color(TextColor.fromHexString("#" + color)));
|
||||
essentialsNickname.append("§#").append(color).append(character != ' ' ? character : '_');
|
||||
essentialsNickname.append("&#").append(color).append(character != ' ' ? character : '_');
|
||||
hue = (hue + increment) % 360;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue