Commit Graph

112 Commits

Author SHA1 Message Date
Alex "mcmonkey" Goodwin
9e0b4e0ab9 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).
If colors and effects are combined, using only the most 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.
2018-12-20 04:44:06 +08:00
mcmonkey
738a75e5c9
patch other altered field 2018-12-14 15:24:28 -08:00
mcmonkey
eea6e83e83
Patch for latest spigot, may have issues, for #1635
cross-compat is getting messy as Spigot is changing too many names within a single version label
2018-12-13 01:13:42 -08:00
mcmonkey
9ac3f0fa0c
patch other newly named NMS fields 2018-12-10 07:26:05 -08:00
mcmonkey
2a65357aff
add a fallback handling for older builds of spigot 2018-12-07 06:01:17 -08:00
mcmonkey
28cc67cbad
patch for latest spigot 1.13.2 build 2018-12-07 00:44:25 -08:00
mergu
f47912f001 Fix npc path block updates (#1611)
* Fix npc path block updates

* Only update pathfind blocks in debug mode
2018-11-05 19:05:28 +08:00
fullwall
3c1975f1df Update for 1.13.2 2018-10-25 16:48:15 +08:00
fullwall
9f9647a615 Reset pitch 2018-09-30 15:25:10 +08:00
fullwall
d9a0481a7e Fix for change in EntityTypes fields 2018-09-26 18:57:34 +08:00
fullwall
97d4d7b428 Force armor stands to use the new pathfinder and override packet sending 2018-09-18 18:15:37 +08:00
fullwall
11166c8bbe Update version and preliminary 1.13.1 update 2018-08-26 20:43:51 +08:00