aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-03-17 07:48:29 +0100
committerGitHub <noreply@github.com>2017-03-17 07:48:29 +0100
commit0891975ad6c8d6d3e15b20f33b22cf5baca7eb62 (patch)
tree5e34935333741f6376b0a84fa00b3178c584d457 /src/client.cpp
parentb52f3005c315da9e55ffa7f1cbd71f2b18c7ba7f (diff)
downloadminetest-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.cpp1
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()