diff --git a/src/content_cao.cpp b/src/content_cao.cpp index a8e03d67..88ed43a8 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -613,45 +613,7 @@ bool GenericCAO::collideWithObjects() void GenericCAO::initialize(const std::string &data) { infostream<<"GenericCAO: Got init data"<getGenericCAO(child_id)) { - childobj->initialize(deSerializeLongString(is)); + childobj->processInitData(deSerializeLongString(is)); } else { m_env->addActiveObject(child_id, type, deSerializeLongString(is)); } diff --git a/src/content_cao.h b/src/content_cao.h index cf14a1e1..5b347181 100644 --- a/src/content_cao.h +++ b/src/content_cao.h @@ -125,6 +125,8 @@ public: void initialize(const std::string &data); + void processInitData(const std::string &data); + ClientActiveObject *getParent(); bool getCollisionBox(aabb3f *toset);