summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clientmods/preview/init.lua3
-rw-r--r--doc/client_lua_api.txt2
-rw-r--r--src/script/lua_api/l_env.cpp1
3 files changed, 1 insertions, 5 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index 95cf9ce64..c1358b1c1 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -143,8 +143,7 @@ core.after(5, function()
core.ui.minimap:show()
end
- print("[PREVIEW] Day count: " .. core.get_day_count() ..
- " time of day " .. core.get_timeofday())
+ print("[PREVIEW] Time of day " .. core.get_timeofday())
print("[PREVIEW] Node level: " .. core.get_node_level({x=0, y=20, z=0}) ..
" max level " .. core.get_node_max_level({x=0, y=20, z=0}))
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index 51854d3d9..a71421747 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -734,8 +734,6 @@ Call these functions only at load time!
* Optional: Variable number of arguments that are passed to `func`
* `minetest.get_us_time()`
* Returns time with microsecond precision. May not return wall time.
-* `minetest.get_day_count()`
- * Returns number days elapsed since world was created, accounting for time changes.
* `minetest.get_timeofday()`
* Returns the time of day: `0` for midnight, `0.5` for midday
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp
index a56b1cb0b..8c2b6ffd8 100644
--- a/src/script/lua_api/l_env.cpp
+++ b/src/script/lua_api/l_env.cpp
@@ -1330,7 +1330,6 @@ void ModApiEnvMod::Initialize(lua_State *L, int top)
void ModApiEnvMod::InitializeClient(lua_State *L, int top)
{
API_FCT(get_timeofday);
- API_FCT(get_day_count);
API_FCT(get_node_max_level);
API_FCT(get_node_level);
API_FCT(find_node_near);