mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Update Night Vision to allow full day brightness - only active at night.
This commit is contained in:
parent
90b902a228
commit
16c886f0ec
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue