Fix set_default_lighting writing to list rather than hash part

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

View file

@ -74,7 +74,7 @@ local function set_default_lighting(players)
local lighting = { local lighting = {
shadows = { intensity = 0.33 } shadows = { intensity = 0.33 }
} }
local overrides = weather.on_update(player, { lighting }) local overrides = weather.on_update(player, { lighting = lighting })
if overrides.lighting ~= nil then if overrides.lighting ~= nil then
player:set_lighting(overrides.lighting) player:set_lighting(overrides.lighting)
end end