1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-12 16:58:39 +00:00
* Bugfix
This commit is contained in:
Vitaliy 2018-04-06 17:33:43 +03:00 committed by Loïc Blot
parent 91615f9588
commit 460b375cad
3 changed files with 40 additions and 20 deletions

View file

@ -272,6 +272,8 @@ void LuaEntitySAO::addedToEnvironment(u32 dtime_s)
// Get properties
m_env->getScriptIface()->
luaentity_GetProperties(m_id, &m_prop);
// Notify the environment of the new properties
m_env->updateActiveObject(this);
// Initialize HP from properties
m_hp = m_prop.hp_max;
// Activate entity, supplying serialized state