mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Prevent attached models from disappearing during parent reload (#4128)
This commit is contained in:
parent
9978d0796f
commit
ad163ee5c3
7 changed files with 62 additions and 32 deletions
|
@ -182,3 +182,15 @@ std::string gob_cmd_update_nametag_attributes(video::SColor color)
|
|||
writeARGB8(os, color);
|
||||
return os.str();
|
||||
}
|
||||
|
||||
std::string gob_cmd_update_infant(u16 id, u8 type, std::string client_initialization_data)
|
||||
{
|
||||
std::ostringstream os(std::ios::binary);
|
||||
// command
|
||||
writeU8(os, GENERIC_CMD_SPAWN_INFANT);
|
||||
// parameters
|
||||
writeU16(os, id);
|
||||
writeU8(os, type);
|
||||
os<<serializeLongString(client_initialization_data);
|
||||
return os.str();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue