Fix crash after 'LuaEntity name "particles:smoke" not defined' and similar errors
parent
2b4d21160f
commit
c59d139eeb
|
@ -389,11 +389,10 @@ void LuaEntitySAO::addedToEnvironment()
|
||||||
scriptapi_luaentity_get_properties(L, m_id, &m_prop);
|
scriptapi_luaentity_get_properties(L, m_id, &m_prop);
|
||||||
// Initialize HP from properties
|
// Initialize HP from properties
|
||||||
m_hp = m_prop.hp_max;
|
m_hp = m_prop.hp_max;
|
||||||
}
|
|
||||||
|
|
||||||
// Activate entity, supplying serialized state
|
// Activate entity, supplying serialized state
|
||||||
scriptapi_luaentity_activate(L, m_id, m_init_state.c_str());
|
scriptapi_luaentity_activate(L, m_id, m_init_state.c_str());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ServerActiveObject* LuaEntitySAO::create(ServerEnvironment *env, v3f pos,
|
ServerActiveObject* LuaEntitySAO::create(ServerEnvironment *env, v3f pos,
|
||||||
const std::string &data)
|
const std::string &data)
|
||||||
|
|
Loading…
Reference in New Issue