diff --git a/mods/ITEMS/mcl_beds/functions.lua b/mods/ITEMS/mcl_beds/functions.lua index 3ba79d8a7..69f69f17e 100644 --- a/mods/ITEMS/mcl_beds/functions.lua +++ b/mods/ITEMS/mcl_beds/functions.lua @@ -424,7 +424,7 @@ function mcl_beds.on_rightclick(pos, player, is_top) update_formspecs(false) -- skip the night and let all players stand up - if check_in_beds() then + if player_in_bed > 0 then minetest.after(5, recheck_in_beds) end end @@ -452,7 +452,7 @@ minetest.register_on_leaveplayer(function(player) break end end - if check_in_beds(players) then + if player_in_bed > 0 then minetest.after(5, recheck_in_beds) end update_formspecs(false, players)