mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-15 12:21:24 +00:00
Fix beds respawn settings check
This commit is contained in:
parent
86e0e4b2bf
commit
41837e6193
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue