mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-06 13:07:33 +01:00
Update init.lua
This commit is contained in:
parent
cd51a52ff2
commit
28b84a69d2
4
init.lua
4
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))
|
||||
|
Loading…
Reference in New Issue
Block a user