From ae811ed7037e2013a58642ba495367e2a425bff1 Mon Sep 17 00:00:00 2001 From: FossFanatic Date: Mon, 13 Mar 2023 13:10:27 +0000 Subject: [PATCH] Disable snowy weather temporarily This commit quickly disables the standalone snow weather for the time being, until a more permanent solution can be found. The snowy weather should no longer occur naturally, but can still be summoned with `/weather snow` if wanted. --- mods/ENVIRONMENT/mcl_weather/snow.lua | 29 --------------------------- 1 file changed, 29 deletions(-) diff --git a/mods/ENVIRONMENT/mcl_weather/snow.lua b/mods/ENVIRONMENT/mcl_weather/snow.lua index 8de0dc0ae..9ff2605df 100644 --- a/mods/ENVIRONMENT/mcl_weather/snow.lua +++ b/mods/ENVIRONMENT/mcl_weather/snow.lua @@ -102,35 +102,6 @@ function mcl_weather.snow.add_player(player) end end -local timer = 0 -minetest.register_globalstep(function(dtime) - if mcl_weather.state ~= "snow" then - return false - end - - timer = timer + dtime; - if timer >= 0.5 then - timer = 0 - else - return - end - - if mcl_weather.snow.init_done == false then - mcl_weather.snow.set_sky_box() - mcl_weather.snow.init_done = true - end - - for _, player in pairs(get_connected_players()) do - if mcl_weather.is_underwater(player) or not mcl_weather.has_snow(player:get_pos()) then - mcl_weather.remove_spawners_player(player) - mcl_weather.set_sky_box_clear(player) - else - mcl_weather.snow.add_player(player) - mcl_weather.snow.set_sky_box() - end - end -end) - -- register snow weather if mcl_weather.reg_weathers.snow == nil then mcl_weather.reg_weathers.snow = {