mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Fix lightnings in the End
This commit is contained in:
parent
2e6aa37ca4
commit
d55928fe95
1 changed files with 2 additions and 3 deletions
|
@ -78,7 +78,7 @@ mcl_weather.skycolor = {
|
|||
-- Override day/night ratio as well
|
||||
players = mcl_weather.skycolor.utils.get_players(players)
|
||||
for _, player in ipairs(players) do
|
||||
local pos = player:getpos()
|
||||
local pos = player:get_pos()
|
||||
local _, dim = mcl_util.y_to_layer(pos.y)
|
||||
if dim == "overworld" then
|
||||
player:set_sky(color, "plain", nil, true)
|
||||
|
@ -99,9 +99,8 @@ mcl_weather.skycolor = {
|
|||
else
|
||||
player:override_day_night_ratio(nil)
|
||||
end
|
||||
else
|
||||
player:override_day_night_ratio(nil)
|
||||
end
|
||||
-- Other dimensions are handled in mcl_playerplus
|
||||
end
|
||||
end,
|
||||
|
||||
|
|
Loading…
Reference in a new issue