Skip to content

Commit

Permalink
Fix build status
Browse files Browse the repository at this point in the history
  • Loading branch information
Panquesito7 committed Jan 19, 2020
1 parent 322d5fa commit 30c74a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function tp.tpc_teleport_player(player)
end

-- TPP
function tp.tpp_teleport_player(player)
function tp.tpp_teleport_player(player, pos)
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(tp.find_free_position_near(pos))
Expand Down Expand Up @@ -567,8 +567,8 @@ if tp.enable_tpp_command then

-- Teleport player to the specified place (taken from shivajiva101's POI mod, thanks!).
elseif tp.available_places[param] then
pos = {x = tp.available_places[param].x, y = tp.available_places[param].y, z = tp.available_places[param].z}
tp.tpp_teleport_player(player)
local pos = {x = tp.available_places[param].x, y = tp.available_places[param].y, z = tp.available_places[param].z}
tp.tpp_teleport_player(player, pos)
minetest.chat_send_player(player, S("Teleporting to @1.", param))
if minetest.get_modpath("chat2") then
chat2.send_message(minetest.get_player_by_name(player), S("Teleporting to @1.", param), 0xFFFFFF)
Expand Down

0 comments on commit 30c74a9

Please sign in to comment.