From fb0ec6ca24ef9eee8b11dd47ac3a01f79c54aaed Mon Sep 17 00:00:00 2001 From: Panquesito7 <51391473+Panquesito7@users.noreply.github.com> Date: Thu, 25 Jul 2019 21:19:18 -0500 Subject: [PATCH] Add "find_free_position_near"... ...function to "tpp_teleport_player" function. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index dd16669..f5b1f7f 100644 --- a/init.lua +++ b/init.lua @@ -75,7 +75,7 @@ end function tpp_teleport_player(player) local pname = minetest.get_player_by_name(player) minetest.sound_play("whoosh", {pos = pname:get_pos(), gain = 0.5, max_hear_distance = 10}) - pname:set_pos(pos) + pname:set_pos(find_free_position_near(pos)) minetest.sound_play("whoosh", {pos = pos, gain = 0.5, max_hear_distance = 10}) --parti2(target_coords) end