Refactor and tweak sky light overwrite
This commit is contained in:
parent
b7880529a8
commit
c434a41dec
5 changed files with 14 additions and 23 deletions
|
@ -38,11 +38,11 @@ weather.get_rand_end_time = function(min_duration, max_duration)
|
|||
end
|
||||
end
|
||||
|
||||
weather.get_current_day_night_ratio = function()
|
||||
weather.get_current_light_factor = function()
|
||||
if weather.state == "none" then
|
||||
return nil
|
||||
else
|
||||
return weather.reg_weathers[weather.state].day_night_ratio
|
||||
return weather.reg_weathers[weather.state].light_factor
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue