mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Generalize core.get/set_nametag_color into core.get/set_nametag_attributes
This commit is contained in:
parent
5d1d7c17ea
commit
18c2f16c13
7 changed files with 36 additions and 26 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue