mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 11:25:09 +00: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
|
-- 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 a new issue