Update Night Vision to allow full day brightness - only active at night.

This commit is contained in:
Brandon 2020-07-10 19:10:38 -04:00
parent 90b902a228
commit 16c886f0ec
1 changed files with 4 additions and 1 deletions

View File

@ -174,7 +174,10 @@ minetest.register_globalstep(function(dtime)
is_cat[player].timer = is_cat[player].timer + dtime
if player:get_pos() then mcl_potions._add_spawner(player, "#1010AA") end
player:override_day_night_ratio(0.45)
if minetest.get_timeofday() > 0.8 or minetest.get_timeofday() < 0.2 then
player:override_day_night_ratio(0.45)
else player:override_day_night_ratio(nil)
end
if is_cat[player].timer >= is_cat[player].dur then
is_cat[player] = nil