From d55928fe95e38ef2578ec5316fc20af6ce0dd5fe Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 23 Nov 2017 22:31:39 +0100 Subject: [PATCH] Fix lightnings in the End --- mods/ENVIRONMENT/mcl_weather/skycolor.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mods/ENVIRONMENT/mcl_weather/skycolor.lua b/mods/ENVIRONMENT/mcl_weather/skycolor.lua index 4e667a2e01..ae5f17a13c 100644 --- a/mods/ENVIRONMENT/mcl_weather/skycolor.lua +++ b/mods/ENVIRONMENT/mcl_weather/skycolor.lua @@ -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,