diff options
| author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-07-20 16:43:11 +0200 |
|---|---|---|
| committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-07-20 16:43:11 +0200 |
| commit | 064c25caa14f2e7564992c21f27de753985062e1 (patch) | |
| tree | 7274eb58aefe32523da264c2c7f568dde944226b /src/client/content_cao.cpp | |
| parent | 5a8610c2f41e44c827912246b4f9437051d11621 (diff) | |
| download | dragonfireclient-064c25caa14f2e7564992c21f27de753985062e1.tar.xz | |
Added EntitySpeed
Diffstat (limited to 'src/client/content_cao.cpp')
| -rw-r--r-- | src/client/content_cao.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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(); } |
