mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Revert "Detach the player from entities on death." (#5087)
This commit is contained in:
parent
b9c1a758a1
commit
bc29e03b59
5 changed files with 14 additions and 16 deletions
|
@ -203,16 +203,6 @@ void UnitSAO::getAttachment(int *parent_id, std::string *bone, v3f *position,
|
|||
*rotation = m_attachment_rotation;
|
||||
}
|
||||
|
||||
void UnitSAO::detachFromParent()
|
||||
{
|
||||
ServerActiveObject *parent = NULL;
|
||||
if (m_attachment_parent_id)
|
||||
parent = m_env->getActiveObject(m_attachment_parent_id);
|
||||
setAttachment(NULL, "", v3f(0, 0, 0), v3f(0, 0, 0));
|
||||
if (parent != NULL)
|
||||
parent->removeAttachmentChild(m_id);
|
||||
}
|
||||
|
||||
void UnitSAO::addAttachmentChild(int child_id)
|
||||
{
|
||||
m_attachment_child_ids.insert(child_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue