aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 4ad1f1226..4c3992e6a 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1056,6 +1056,8 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id)
for all added objects {
u16 id
u8 type
+ u16 initialization data length
+ string initialization data
}
*/
@@ -1090,10 +1092,11 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id)
u16 id = readU16((u8*)buf);
is.read(buf, 1);
u8 type = readU8((u8*)buf);
+ std::string data = deSerializeLongString(is);
// Add it
{
JMutexAutoLock envlock(m_env_mutex);
- m_env.addActiveObject(id, type);
+ m_env.addActiveObject(id, type, data);
}
}
}