From 064c25caa14f2e7564992c21f27de753985062e1 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Mon, 20 Jul 2020 16:43:11 +0200 Subject: Added EntitySpeed --- src/client/content_cao.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client/content_cao.cpp') diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp index db78f7a65..5f60c3375 100644 --- a/src/client/content_cao.cpp +++ b/src/client/content_cao.cpp @@ -472,13 +472,14 @@ void GenericCAO::setAttachment(int parent_id, const std::string &bone, v3f posit ClientActiveObject *parent = m_env->getActiveObject(parent_id); if (parent_id != old_parent) { + if (old_parent) + m_waiting_for_reattach = 10; if (auto *o = m_env->getActiveObject(old_parent)) o->removeAttachmentChild(m_id); if (parent) parent->addAttachmentChild(m_id); } - - + updateAttachments(); } -- cgit v1.2.3