mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Fixed weather not clearing after sleep
Isnt as clean as it should be because making it clean made some very funky results
This commit is contained in:
parent
620a0af483
commit
70fb4f8a0d
1 changed files with 5 additions and 1 deletions
|
@ -274,7 +274,11 @@ function mcl_beds.sleep()
|
||||||
end
|
end
|
||||||
-- Always clear weather
|
-- Always clear weather
|
||||||
mcl_weather.change_weather("none")
|
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.skip_night()
|
||||||
mcl_beds.kick_players()
|
mcl_beds.kick_players()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue