mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Scripting WIP
This commit is contained in:
parent
41c91391fc
commit
f145d498a6
7 changed files with 380 additions and 151 deletions
|
@ -1497,10 +1497,10 @@ u16 ServerEnvironment::addActiveObjectRaw(ServerActiveObject *object,
|
|||
<<" statically"<<std::endl;
|
||||
}
|
||||
|
||||
// Register reference in scripting api (must be done before post-init)
|
||||
scriptapi_add_object_reference(m_lua, object);
|
||||
// Post-initialize object
|
||||
object->addedToEnvironment(object->getId());
|
||||
// Register reference in scripting api
|
||||
scriptapi_add_object_reference(m_lua, object);
|
||||
|
||||
return object->getId();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue