mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Fix crash on startup if mcl_playersSleepingPercentage is not defined (#1874)
This commit is contained in:
parent
19b5a5aac7
commit
9ccf8de606
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ local function get_look_yaw(pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function players_in_bed_setting()
|
local function players_in_bed_setting()
|
||||||
return tonumber(minetest.settings:get("mcl_playersSleepingPercentage"))
|
return tonumber(minetest.settings:get("mcl_playersSleepingPercentage")) or 100
|
||||||
end
|
end
|
||||||
|
|
||||||
local function is_night_skip_enabled()
|
local function is_night_skip_enabled()
|
||||||
|
|
Loading…
Reference in a new issue