Skip to content
Snippets Groups Projects
Unverified Commit 382e2acd authored by Paramat's avatar Paramat Committed by GitHub
Browse files

Spawn mod: Avoid respawn conflict with beds mod (#2240)

parent b042106f
No related branches found
No related tags found
No related merge requests found
default
beds?
......@@ -126,7 +126,18 @@ minetest.register_on_newplayer(function(player)
on_spawn(player)
end)
local enable_bed_respawn = minetest.settings:get_bool("enable_bed_respawn")
if enable_bed_respawn == nil then
enable_bed_respawn = true
end
minetest.register_on_respawnplayer(function(player)
-- Avoid respawn conflict with beds mod
if beds and enable_bed_respawn and
beds.spawn[player:get_player_name()] then
return
end
on_spawn(player)
return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment