mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2024-08-20 13:24:07 +02:00
make var p local to avoid warnings | Fix description of tphr
This commit is contained in:
parent
cd95a32edd
commit
b3be1e19b6
6
init.lua
6
init.lua
@ -134,8 +134,8 @@ local function tpr_accept(name, param)
|
||||
minetest.chat_send_player(name2, "Request Accepted!")
|
||||
minetest.chat_send_player(name, chatmsg)
|
||||
|
||||
p = source:getpos()
|
||||
p = find_free_position_near(p)
|
||||
local p = source:getpos()
|
||||
local p = find_free_position_near(p)
|
||||
target:setpos(p)
|
||||
end
|
||||
|
||||
@ -159,7 +159,7 @@ minetest.register_chatcommand("tpr", {
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("tphr", {
|
||||
description = "Request teleport to another player",
|
||||
description = "Request player to teleport to you",
|
||||
params = "<playername> | leave playername empty to see help message",
|
||||
privs = {interact=true},
|
||||
func = tphr_send
|
||||
|
Loading…
Reference in New Issue
Block a user