diff --git a/lib/skybox_merger.lua b/lib/skybox_merger.lua index 8e84987..8023685 100644 --- a/lib/skybox_merger.lua +++ b/lib/skybox_merger.lua @@ -80,12 +80,7 @@ local function set_skybox(playername, sky) shadows = { intensity = sky.light_data.shadow_intensity }, saturation = sky.light_data.saturation } - if mod_lighting_monoid then - lighting_monoid:add_change(player, lighting, "climate_api:merged_lighting") - lighting_monoid:del_change(player, "lighting_monoid:base_shadow") - elseif player.set_lighting then - player:set_lighting(lighting) - end + lighting_monoid:add_change(player, lighting, "climate_api:merged_lighting") end function skybox.update(playername) diff --git a/mod.conf b/mod.conf index a785ff6..3231d08 100644 --- a/mod.conf +++ b/mod.conf @@ -1,7 +1,8 @@ name = climate_api title = Climate API author = TestificateMods -optional_depends = player_monoids, playerphysics, pova, lighting_monoid +depends = lighting_monoid +optional_depends = player_monoids, playerphysics, pova description = """ A powerful engine for weather presets and visual effects. Use the regional climate to set up different effects for different regions.