1
0
Fork 0

Make skycolor mod always active

objects
Wuzzy 2017-02-21 15:09:54 +01:00
parent cdd616f6b1
commit cf420a090c
1 changed files with 2 additions and 4 deletions

View File

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