Fix beds respawn settings check
authorBlockMen <nmuelll@web.de>
Fri, 6 Mar 2015 18:29:16 +0000 (19:29 +0100)
committerBlockMen <nmuelll@web.de>
Fri, 6 Mar 2015 18:29:16 +0000 (19:29 +0100)
mods/beds/functions.lua

index 87a930e20e5f381ddac39d96e20fd8939972fa32..8cb28483e5912352aec75a4ecafad4b035c2ffea 100644 (file)
@@ -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