Allow respawn anchors to work upon death.

This commit is contained in:
nooneatall 2024-12-19 21:36:03 +02:00 committed by cora
parent 25a4df8538
commit a4f860eb61

View File

@ -167,10 +167,10 @@ function mcl_spawn.get_player_spawn_pos(player)
return mcl_spawn.get_world_spawn_pos(), false
elseif charge_level ~= 1 then
minetest.set_node(checkpos, {name="mcl_beds:respawn_anchor_charged_".. charge_level-1})
return checkpos, false
return checkpos, true
else
minetest.set_node(checkpos, {name="mcl_beds:respawn_anchor"})
return checkpos, false
return checkpos, true
end
else
player:get_meta():set_string("mcl_beds:spawn", "")