mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +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
|
@ -814,7 +814,7 @@ std::string PlayerSAO::getClientInitializationData(u16 protocol_version)
|
|||
os<<serializeLongString(gob_cmd_update_physics_override(m_physics_override_speed,
|
||||
m_physics_override_jump, m_physics_override_gravity, m_physics_override_sneak,
|
||||
m_physics_override_sneak_glitch)); // 5
|
||||
os << serializeLongString(gob_cmd_set_nametag_color(m_nametag_color)); // 6
|
||||
os << serializeLongString(gob_cmd_update_nametag_attributes(m_nametag_color)); // 6
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -971,7 +971,7 @@ void PlayerSAO::step(float dtime, bool send_recommended)
|
|||
|
||||
if (m_nametag_sent == false) {
|
||||
m_nametag_sent = true;
|
||||
std::string str = gob_cmd_set_nametag_color(m_nametag_color);
|
||||
std::string str = gob_cmd_update_nametag_attributes(m_nametag_color);
|
||||
// create message and add to list
|
||||
ActiveObjectMessage aom(getId(), true, str);
|
||||
m_messages_out.push(aom);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue