Skip to content

Commit 485b669

Browse files
committedNov 9, 2019
[CSM] Remove non-functional minetest.get_day_count()
1 parent 7e649f9 commit 485b669

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed
 

‎clientmods/preview/init.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ core.after(5, function()
143143
core.ui.minimap:show()
144144
end
145145

146-
print("[PREVIEW] Day count: " .. core.get_day_count() ..
147-
" time of day " .. core.get_timeofday())
146+
print("[PREVIEW] Time of day " .. core.get_timeofday())
148147

149148
print("[PREVIEW] Node level: " .. core.get_node_level({x=0, y=20, z=0}) ..
150149
" max level " .. core.get_node_max_level({x=0, y=20, z=0}))

‎doc/client_lua_api.txt

-2
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,6 @@ Call these functions only at load time!
734734
* Optional: Variable number of arguments that are passed to `func`
735735
* `minetest.get_us_time()`
736736
* Returns time with microsecond precision. May not return wall time.
737-
* `minetest.get_day_count()`
738-
* Returns number days elapsed since world was created, accounting for time changes.
739737
* `minetest.get_timeofday()`
740738
* Returns the time of day: `0` for midnight, `0.5` for midday
741739

‎src/script/lua_api/l_env.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,6 @@ void ModApiEnvMod::Initialize(lua_State *L, int top)
13301330
void ModApiEnvMod::InitializeClient(lua_State *L, int top)
13311331
{
13321332
API_FCT(get_timeofday);
1333-
API_FCT(get_day_count);
13341333
API_FCT(get_node_max_level);
13351334
API_FCT(get_node_level);
13361335
API_FCT(find_node_near);

0 commit comments

Comments
 (0)
Please sign in to comment.