Require lighting monoid

This commit is contained in:
Till Affeldt 2024-09-27 00:15:12 +02:00
parent c23277284a
commit 8e3ce58015
2 changed files with 3 additions and 7 deletions

View File

@ -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
end
function skybox.update(playername)

View File

@ -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.