From 28b84a69d27d6006ecc8db10a44c835ae05c5fb9 Mon Sep 17 00:00:00 2001 From: Panquesito7 <51391473+Panquesito7@users.noreply.github.com> Date: Thu, 25 Jul 2019 19:50:28 -0500 Subject: [PATCH] Update init.lua --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 3556d5e..dd16669 100644 --- a/init.lua +++ b/init.lua @@ -43,8 +43,8 @@ local function can_teleport(to) return to.x < map_size and to.x > -map_size and to.y < map_size and to.y > -map_size and to.z < map_size and to.z > -map_size end --- Teleport player to a player (used in "/tpr" command). -function tpr_teleport_player(name) +-- Teleport player to a player (used in "/tpr" and in "/tphr" command). +function tpr_teleport_player() local target_coords = source:get_pos() local target_sound = target:get_pos() target:set_pos(find_free_position_near(target_coords))