Fix is_night function
parent
93777a886c
commit
dfab21fbc3
|
@ -148,7 +148,7 @@ end
|
||||||
|
|
||||||
function adventuretest.is_night()
|
function adventuretest.is_night()
|
||||||
local t = minetest.get_timeofday()
|
local t = minetest.get_timeofday()
|
||||||
if t > 0.8 or t < 4 then
|
if t > 0.8 or t < 0.4 then
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue