diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-12 02:25:30 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:39 +0200 |
commit | f145d498a6d91e3f5f3dcf921db8b74c98a7dad2 (patch) | |
tree | 8546af949d63af226fc4e858fe5678248a9f8e4a /src/environment.cpp | |
parent | 41c91391fce65147aa7f3b5ceb7db5758709199a (diff) | |
download | minetest-f145d498a6d91e3f5f3dcf921db8b74c98a7dad2.tar.gz minetest-f145d498a6d91e3f5f3dcf921db8b74c98a7dad2.tar.bz2 minetest-f145d498a6d91e3f5f3dcf921db8b74c98a7dad2.zip |
Scripting WIP
Diffstat (limited to 'src/environment.cpp')
-rw-r--r-- | src/environment.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index d7a647ac8..ed45cee69 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -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(); } |