mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
parent
91615f9588
commit
460b375cad
3 changed files with 40 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue