mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 14:23:16 -04:00
Handle situation when set_lighting is not available
This commit is contained in:
parent
5494fa87c9
commit
51a07a2fb0
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ local function update_clouds()
|
||||||
), 2),
|
), 2),
|
||||||
speed = {x = n_speedx * 4, z = n_speedz * 4},
|
speed = {x = n_speedx * 4, z = n_speedz * 4},
|
||||||
})
|
})
|
||||||
if weather.shadows_enabled then
|
if weather.shadows_enabled and player.set_lighting ~= nil then
|
||||||
player:set_lighting({shadows = { intensity = 0.5 - density / 2.0} })
|
player:set_lighting({shadows = { intensity = 0.5 - density / 2.0} })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue