diff options
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index 82671bf89..88ac6fd70 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1001,6 +1001,9 @@ Server::Server( // Initialize Environment m_env = new ServerEnvironment(new ServerMap(mapsavedir), m_lua); + + // Give environment reference to scripting api + scriptapi_add_environment(m_lua, m_env); // Register us to receive map edit events m_env->getMap().addEventReceiver(this); |