From b62de7e299fce1a0aea2e978c87642ad3c579318 Mon Sep 17 00:00:00 2001 From: Giov4 Date: Sat, 15 Jun 2024 16:20:27 +0200 Subject: [PATCH] Using latest teleport_onto_spawner arena_lib function --- src/respawn/anchor_entity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/respawn/anchor_entity.lua b/src/respawn/anchor_entity.lua index f164e57..2a250f8 100644 --- a/src/respawn/anchor_entity.lua +++ b/src/respawn/anchor_entity.lua @@ -124,5 +124,5 @@ function on_pl_detach(entity, player) entity.object:remove() - if arena then player:set_pos(arena_lib.get_random_spawner(arena)) end + if arena then arena_lib.teleport_onto_spawner(player, arena) end end \ No newline at end of file