mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 14:23:16 -04:00
Fix same mistake in update_weather
This commit is contained in:
parent
bf7296e5c5
commit
3b75e7fef3
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ local function update_weather(players)
|
||||||
shadows = { intensity = 0.7 * (1 - density) }
|
shadows = { intensity = 0.7 * (1 - density) }
|
||||||
}
|
}
|
||||||
-- check for API overrides and then apply
|
-- check for API overrides and then apply
|
||||||
local overrides = weather.on_update(player, { clouds, lighting })
|
local overrides = weather.on_update(player, { clouds = clouds, lighting = lighting })
|
||||||
if overrides ~= nil and overrides.clouds ~= nil then
|
if overrides ~= nil and overrides.clouds ~= nil then
|
||||||
player:set_clouds(overrides.clouds)
|
player:set_clouds(overrides.clouds)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue