diff options
author | proller <proller@github.com> | 2014-04-18 21:08:03 +0400 |
---|---|---|
committer | proller <proller@github.com> | 2014-04-18 21:56:48 +0400 |
commit | 0279f32db742f06d24a9d01c46f7d70c5e570eb2 (patch) | |
tree | 217f49380e9e363a5086468c14168c8efd9b3f26 /src/script | |
parent | 674be38fc262aab78ed75141c70e5c02830ca80d (diff) | |
download | minetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.tar.gz minetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.tar.bz2 minetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.zip |
Remove liquid_finite and weather
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/lua_api/l_env.cpp | 25 | ||||
-rw-r--r-- | src/script/lua_api/l_env.h | 3 |
2 files changed, 0 insertions, 28 deletions
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp index 6447866cd..37fa167e6 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -765,7 +765,6 @@ int ModApiEnvMod::l_spawn_tree(lua_State *L) return 1; } - // minetest.transforming_liquid_add(pos) int ModApiEnvMod::l_transforming_liquid_add(lua_State *L) { @@ -776,28 +775,6 @@ int ModApiEnvMod::l_transforming_liquid_add(lua_State *L) return 1; } -// minetest.get_heat(pos) -// pos = {x=num, y=num, z=num} -int ModApiEnvMod::l_get_heat(lua_State *L) -{ - GET_ENV_PTR; - - v3s16 pos = read_v3s16(L, 1); - lua_pushnumber(L, env->getServerMap().updateBlockHeat(env, pos)); - return 1; -} - -// minetest.get_humidity(pos) -// pos = {x=num, y=num, z=num} -int ModApiEnvMod::l_get_humidity(lua_State *L) -{ - GET_ENV_PTR; - - v3s16 pos = read_v3s16(L, 1); - lua_pushnumber(L, env->getServerMap().updateBlockHumidity(env, pos)); - return 1; -} - // minetest.forceload_block(blockpos) // blockpos = {x=num, y=num, z=num} int ModApiEnvMod::l_forceload_block(lua_State *L) @@ -855,8 +832,6 @@ void ModApiEnvMod::Initialize(lua_State *L, int top) API_FCT(find_path); API_FCT(line_of_sight); API_FCT(transforming_liquid_add); - API_FCT(get_heat); - API_FCT(get_humidity); API_FCT(forceload_block); API_FCT(forceload_free_block); } diff --git a/src/script/lua_api/l_env.h b/src/script/lua_api/l_env.h index 7e1cabe3f..8bf599b0c 100644 --- a/src/script/lua_api/l_env.h +++ b/src/script/lua_api/l_env.h @@ -148,9 +148,6 @@ private: // minetest.transforming_liquid_add(pos) static int l_transforming_liquid_add(lua_State *L); - static int l_get_heat(lua_State *L); - static int l_get_humidity(lua_State *L); - // minetest.forceload_block(blockpos) // forceloads a block static int l_forceload_block(lua_State *L); |