mirror of
https://github.com/minetest/minetest.git
synced 2024-11-10 17:53:46 +01:00
Warning: inform about entity name when bug detected about attachement (#13354)
This commit is contained in:
parent
d1a55e9ca4
commit
e7be135b78
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user