Skip to content
Permalink
Browse files

Add infotext containing entity type (e.g. mobs:cow) to unknown entiti…

…es (#4431)

If a mod is disabled, or upgraded without sufficient backward compatibility,
then entities it has put into the world become unknown, and continue moving
around, but are completely unrecognisable.

This change allows the player to see their type, and therefore which mod is
or was responsible.
  • Loading branch information
Rogier-5 authored and nerzhul committed Aug 10, 2016
1 parent 48b3bb9 commit 35f47e5461042b3d190f8ea583aec2aa26f1c484
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/content_sao.cpp
@@ -175,6 +175,8 @@ void LuaEntitySAO::addedToEnvironment(u32 dtime_s)
// Activate entity, supplying serialized state
m_env->getScriptIface()->
luaentity_Activate(m_id, m_init_state.c_str(), dtime_s);
} else {
m_prop.infotext = m_init_name;
}
}

0 comments on commit 35f47e5

Please sign in to comment.
You can’t perform that action at this time.