Skip to content
Success

#1605 (Dec 26, 2018, 6:03:41 AM)

Started 7 yr 1 mo ago
Took 8.6 sec
Build Artifacts
citizens-v1_11_R1-2.0.24-SNAPSHOT.jar432.44 KiB view
citizens-v1_11_R1-2.0.24-SNAPSHOT.pom2.14 KiB view
Improve handling of NPC names, fixes #1640 (#1642)
* Improve handling of NPC names, fixes #1640
Moves the logic to a Util method (instead of duplicated in each
module), and adds the "prefixColors" portions (replacing just a static
'RESET' code).
recent effect is sufficient (eg reapplying bold) as that should produce
effectively no change while still having a color code stuck into the
name as is needed to break NPCs looking like real players internally.

* Additional NPC name improvement: fix color code splliting
a name consisting of a color code followed by 15 letters would get
split in the middle of the color code, rather than around it. This fixes
that.
(commit: 9e0b4e0)
fullwall at