projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86e0e4b
)
Fix beds respawn settings check
author
BlockMen
<nmuelll@web.de>
Fri, 6 Mar 2015 18:29:16 +0000
(19:29 +0100)
committer
BlockMen
<nmuelll@web.de>
Fri, 6 Mar 2015 18:29:16 +0000
(19:29 +0100)
mods/beds/functions.lua
patch
|
blob
|
history
diff --git
a/mods/beds/functions.lua
b/mods/beds/functions.lua
index 87a930e20e5f381ddac39d96e20fd8939972fa32..8cb28483e5912352aec75a4ecafad4b035c2ffea 100644
(file)
--- 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