mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 11:53:46 +01:00
Merge pull request 'Fixed weather not clearing after sleep' (#3414) from rain_bed_skip into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3414 Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
This commit is contained in:
commit
c1d5d4280e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user