mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Scripting WIP
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user