Skip to content
Snippets Groups Projects
Commit 8863527b authored by sfan5's avatar sfan5
Browse files

Fix respawn not working at all when suitable position was not found

The player should always be teleported away when they die and
we can still fall back to the engine spawning code.
parent fbbc7fc9
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,7 @@ local function on_spawn(player)
if success then
player:set_pos(spawn_pos)
end
return success
end
minetest.register_on_newplayer(function(player)
......@@ -153,7 +154,5 @@ minetest.register_on_respawnplayer(function(player)
return
end
on_spawn(player)
return true
return on_spawn(player)
end)
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