forked from VoxeLibre/VoxeLibre
Fix lightnings in the End
This commit is contained in:
parent
2e6aa37ca4
commit
d55928fe95
|
@ -78,7 +78,7 @@ mcl_weather.skycolor = {
|
||||||
-- Override day/night ratio as well
|
-- Override day/night ratio as well
|
||||||
players = mcl_weather.skycolor.utils.get_players(players)
|
players = mcl_weather.skycolor.utils.get_players(players)
|
||||||
for _, player in ipairs(players) do
|
for _, player in ipairs(players) do
|
||||||
local pos = player:getpos()
|
local pos = player:get_pos()
|
||||||
local _, dim = mcl_util.y_to_layer(pos.y)
|
local _, dim = mcl_util.y_to_layer(pos.y)
|
||||||
if dim == "overworld" then
|
if dim == "overworld" then
|
||||||
player:set_sky(color, "plain", nil, true)
|
player:set_sky(color, "plain", nil, true)
|
||||||
|
@ -99,9 +99,8 @@ mcl_weather.skycolor = {
|
||||||
else
|
else
|
||||||
player:override_day_night_ratio(nil)
|
player:override_day_night_ratio(nil)
|
||||||
end
|
end
|
||||||
else
|
|
||||||
player:override_day_night_ratio(nil)
|
|
||||||
end
|
end
|
||||||
|
-- Other dimensions are handled in mcl_playerplus
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue