Allow respawn anchors to work upon death.
This commit is contained in:
parent
25a4df8538
commit
a4f860eb61
@ -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", "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user