mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Smooth day-night transitions
This commit is contained in:
parent
041585a78e
commit
804a7875a2
7 changed files with 87 additions and 23 deletions
|
@ -3604,7 +3604,7 @@ private:
|
|||
if(lua_isnumber(L, 3))
|
||||
time_of_day = 24000.0 * lua_tonumber(L, 3);
|
||||
time_of_day %= 24000;
|
||||
u32 dnr = time_to_daynight_ratio(time_of_day);
|
||||
u32 dnr = time_to_daynight_ratio(time_of_day, true);
|
||||
MapNode n = env->getMap().getNodeNoEx(pos);
|
||||
try{
|
||||
MapNode n = env->getMap().getNode(pos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue