From: BlockMen Date: Fri, 6 Mar 2015 18:29:16 +0000 (+0100) Subject: Fix beds respawn settings check X-Git-Tag: 0.4.13~98 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=41837e61932f23679a1613d550f2c71163f3aa46;p=oweals%2Fminetest_game.git Fix beds respawn settings check --- diff --git a/mods/beds/functions.lua b/mods/beds/functions.lua index 87a930e2..8cb28483 100644 --- a/mods/beds/functions.lua +++ b/mods/beds/functions.lua @@ -1,6 +1,9 @@ local player_in_bed = 0 local is_sp = minetest.is_singleplayer() -local enable_respawn = minetest.setting_getbool("enable_bed_respawn") or true +local enable_respawn = minetest.setting_getbool("enable_bed_respawn") +if enable_respawn == nil then + enable_respawn = true +end -- helper functions