From e7be135b78444d3241d3bc7938d1faceb6084319 Mon Sep 17 00:00:00 2001 From: mazes-80 <1608580+mazes-80@users.noreply.github.com> Date: Fri, 15 Dec 2023 10:22:58 +0100 Subject: [PATCH] Warning: inform about entity name when bug detected about attachement (#13354) --- src/server/luaentity_sao.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/luaentity_sao.cpp b/src/server/luaentity_sao.cpp index df5282937..26ae43588 100644 --- a/src/server/luaentity_sao.cpp +++ b/src/server/luaentity_sao.cpp @@ -145,7 +145,7 @@ void LuaEntitySAO::step(float dtime, bool send_recommended) // If attached, check that our parent is still there. If it isn't, detach. if (m_attachment_parent_id && !isAttached()) { // This is handled when objects are removed from the map - warningstream << "LuaEntitySAO::step() id=" << m_id << + warningstream << "LuaEntitySAO::step() " << m_init_name << " at: " << PP(m_last_sent_position) << ", id=" << m_id << " is attached to nonexistent parent. This is a bug." << std::endl; clearParentAttachment(); sendPosition(false, true);