We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b042106 commit 382e2acCopy full SHA for 382e2ac
mods/spawn/depends.txt
@@ -1 +1,2 @@
1
default
2
+beds?
mods/spawn/init.lua
@@ -126,7 +126,18 @@ minetest.register_on_newplayer(function(player)
126
on_spawn(player)
127
end)
128
129
+local enable_bed_respawn = minetest.settings:get_bool("enable_bed_respawn")
130
+if enable_bed_respawn == nil then
131
+ enable_bed_respawn = true
132
+end
133
+
134
minetest.register_on_respawnplayer(function(player)
135
+ -- Avoid respawn conflict with beds mod
136
+ if beds and enable_bed_respawn and
137
+ beds.spawn[player:get_player_name()] then
138
+ return
139
+ end
140
141
142
143
return true
0 commit comments