From a4f860eb61fc020a6f57d73a47d9d756b56b111f Mon Sep 17 00:00:00 2001 From: nooneatall Date: Thu, 19 Dec 2024 21:36:03 +0200 Subject: [PATCH] Allow respawn anchors to work upon death. --- mods/PLAYER/mcl_spawn/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/PLAYER/mcl_spawn/init.lua b/mods/PLAYER/mcl_spawn/init.lua index 1d584afea..971ced210 100644 --- a/mods/PLAYER/mcl_spawn/init.lua +++ b/mods/PLAYER/mcl_spawn/init.lua @@ -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", "")