diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-17 07:48:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-17 07:48:29 +0100 |
commit | 0891975ad6c8d6d3e15b20f33b22cf5baca7eb62 (patch) | |
tree | 5e34935333741f6376b0a84fa00b3178c584d457 /src/client.cpp | |
parent | b52f3005c315da9e55ffa7f1cbd71f2b18c7ba7f (diff) | |
download | minetest-0891975ad6c8d6d3e15b20f33b22cf5baca7eb62.tar.gz minetest-0891975ad6c8d6d3e15b20f33b22cf5baca7eb62.tar.bz2 minetest-0891975ad6c8d6d3e15b20f33b22cf5baca7eb62.zip |
[CSM] Add core.get_timeofday & core.get_day_count env calls (#5401)
* [CSM] Add core.get_timeofday & core.get_day_count env calls
* [CSM] Add core.get_node_level, core.get_node_max_level, core.find_node_near
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 2491db704..b355fa617 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -268,6 +268,7 @@ Client::Client( m_modding_enabled = g_settings->getBool("enable_client_modding"); m_script = new ClientScripting(this); m_env.setScript(m_script); + m_script->setEnv(&m_env); } void Client::initMods() |