Make skycolor mod always active

This commit is contained in:
Wuzzy 2017-02-21 15:09:54 +01:00
parent cdd616f6b1
commit cf420a090c

View file

@ -1,6 +1,6 @@
skycolor = { skycolor = {
-- Should be activated before do any effect. -- Should be activated before do any effect.
active = false, active = true,
-- To skip update interval -- To skip update interval
force_update = true, force_update = true,
@ -67,7 +67,6 @@ skycolor = {
update_sky_color = function(players) update_sky_color = function(players)
local color = skycolor.current_sky_layer_color() local color = skycolor.current_sky_layer_color()
if (color == nil) then if (color == nil) then
skycolor.active = false
skycolor.set_default_sky() skycolor.set_default_sky()
return return
end end
@ -97,7 +96,6 @@ skycolor = {
-- Initialy used only on -- Initialy used only on
update_transition_sky_color = function() update_transition_sky_color = function()
if #skycolor.layer_names == 0 then if #skycolor.layer_names == 0 then
skycolor.active = false
skycolor.set_default_sky() skycolor.set_default_sky()
return return
end end
@ -216,7 +214,7 @@ end)
local initsky = function(player) local initsky = function(player)
if (skycolor.active) then if (skycolor.active) then
skycolor.update_sky_color({player}) skycolor.force_update = true
end end
end end