mirror of
https://github.com/t-affeldt/climate_api.git
synced 2024-11-16 23:50:26 +01:00
Require lighting monoid
This commit is contained in:
parent
c23277284a
commit
8e3ce58015
|
@ -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)
|
||||
|
|
3
mod.conf
3
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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user