mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Scripting WIP
This commit is contained in:
parent
41c91391fc
commit
f145d498a6
7 changed files with 380 additions and 151 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue