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/script/clientscripting.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/script/clientscripting.cpp')
-rw-r--r-- | src/script/clientscripting.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/clientscripting.cpp b/src/script/clientscripting.cpp index 8bf1b68b1..df30a7253 100644 --- a/src/script/clientscripting.cpp +++ b/src/script/clientscripting.cpp @@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "client.h" #include "cpp_api/s_internal.h" #include "lua_api/l_client.h" +#include "lua_api/l_env.h" #include "lua_api/l_minimap.h" #include "lua_api/l_storage.h" #include "lua_api/l_sound.h" @@ -62,6 +63,7 @@ void ClientScripting::InitializeModApi(lua_State *L, int top) ModApiClient::Initialize(L, top); ModApiSound::Initialize(L, top); ModApiStorage::Initialize(L, top); + ModApiEnvMod::InitializeClient(L, top); LuaItemStack::Register(L); StorageRef::Register(L); |