Skip to content


Browse files Browse the repository at this point in the history
Fix beds respawn settings check
  • Loading branch information
BlockMen committed Mar 6, 2015
1 parent 86e0e4b commit 41837e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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

-- helper functions
Expand Down

1 comment on commit 41837e6

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only read this at startup? Do you hate /set?

Please sign in to comment.