From 70fb4f8a0dd477de4180a933b5a00cfa990a25ef Mon Sep 17 00:00:00 2001 From: PrairieWind Date: Tue, 7 Feb 2023 10:38:27 -0700 Subject: [PATCH] Fixed weather not clearing after sleep Isnt as clean as it should be because making it clean made some very funky results --- mods/ITEMS/mcl_beds/functions.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_beds/functions.lua b/mods/ITEMS/mcl_beds/functions.lua index 7199c7b7e..294dfc483 100644 --- a/mods/ITEMS/mcl_beds/functions.lua +++ b/mods/ITEMS/mcl_beds/functions.lua @@ -274,7 +274,11 @@ function mcl_beds.sleep() end -- Always clear weather mcl_weather.change_weather("none") - elseif mcl_beds.is_night() then + elseif mcl_beds.is_night() and weather_mod then + mcl_beds.skip_night() + mcl_beds.kick_players() + mcl_weather.change_weather("none") + elseif mcl_beds.is_night() and not weather_mod then mcl_beds.skip_night() mcl_beds.kick_players() end