1
0
Fork 0

Fix crash on startup if mcl_playersSleepingPercentage is not defined (#1874)

This commit is contained in:
NO11 2021-10-09 14:41:56 +00:00
parent 19b5a5aac7
commit 9ccf8de606
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ local function get_look_yaw(pos)
end
local function players_in_bed_setting()
return tonumber(minetest.settings:get("mcl_playersSleepingPercentage"))
return tonumber(minetest.settings:get("mcl_playersSleepingPercentage")) or 100
end
local function is_night_skip_enabled()