Update init.lua

This commit is contained in:
Panquesito7 2019-07-25 19:50:28 -05:00 committed by GitHub
parent cd51a52ff2
commit 28b84a69d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 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 end
-- Teleport player to a player (used in "/tpr" command). -- Teleport player to a player (used in "/tpr" and in "/tphr" command).
function tpr_teleport_player(name) function tpr_teleport_player()
local target_coords = source:get_pos() local target_coords = source:get_pos()
local target_sound = target:get_pos() local target_sound = target:get_pos()
target:set_pos(find_free_position_near(target_coords)) target:set_pos(find_free_position_near(target_coords))