forked from VoxeLibre/VoxeLibre
Dont skip night if no players are in bed
This commit is contained in:
parent
e83438e42c
commit
03be736566
|
@ -38,6 +38,9 @@ local function check_in_beds(players)
|
||||||
if not players then
|
if not players then
|
||||||
players = minetest.get_connected_players()
|
players = minetest.get_connected_players()
|
||||||
end
|
end
|
||||||
|
if player_in_bed < 0 then
|
||||||
|
return false
|
||||||
|
end
|
||||||
return players_in_bed_setting() <= (player_in_bed * 100) / #players
|
return players_in_bed_setting() <= (player_in_bed * 100) / #players
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue