mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-03-20 13:02:29 +01:00
Dont skip night if no players are in bed
This commit is contained in:
@ -38,6 +38,9 @@ local function check_in_beds(players)
|
||||
if not players then
|
||||
players = minetest.get_connected_players()
|
||||
end
|
||||
if player_in_bed < 0 then
|
||||
return false
|
||||
end
|
||||
return players_in_bed_setting() <= (player_in_bed * 100) / #players
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user