diff options
author | TeTpaAka <TeTpaAka@users.noreply.github.com> | 2015-05-15 21:46:56 +0200 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-05-15 16:21:01 -0400 |
commit | 18c2f16c138f4b40b4705507b46d24e1518e4705 (patch) | |
tree | 2407edb6a3e367ae4875459a4a33e5608488a65a /src/content_cao.cpp | |
parent | 5d1d7c17ea234a01af3a16f31bc0e363ffd150ba (diff) | |
download | minetest-18c2f16c138f4b40b4705507b46d24e1518e4705.tar.gz minetest-18c2f16c138f4b40b4705507b46d24e1518e4705.tar.bz2 minetest-18c2f16c138f4b40b4705507b46d24e1518e4705.zip |
Generalize core.get/set_nametag_color into core.get/set_nametag_attributes
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r-- | src/content_cao.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp index 5bf4d8e9c..fe560a41a 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -1715,7 +1715,8 @@ void GenericCAO::processMessage(const std::string &data) int rating = readS16(is); m_armor_groups[name] = rating; } - } else if (cmd == GENERIC_CMD_SET_NAMETAG_COLOR) { + } else if (cmd == GENERIC_CMD_UPDATE_NAMETAG_ATTRIBUTES) { + u8 version = readU8(is); // forward compatibility m_nametag_color = readARGB8(is); if (m_textnode != NULL) { m_textnode->setTextColor(m_nametag_color); |