Fix same mistake in update_weather

This commit is contained in:
Lars Müller 2023-04-21 11:34:10 +02:00 committed by GitHub
parent bf7296e5c5
commit 3b75e7fef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,7 +125,7 @@ local function update_weather(players)
shadows = { intensity = 0.7 * (1 - density) }
}
-- 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
player:set_clouds(overrides.clouds)
end