mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-08 22:17:27 +01:00
Fixed tpr_deny()
This commit is contained in:
parent
b791f13380
commit
8df9e73a5d
16
init.lua
16
init.lua
@ -68,16 +68,14 @@ local function tphr_send(name, param)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function tpr_deny(name)
|
local function tpr_deny(name, param)
|
||||||
sender = tpr_list[value_carryover]
|
if tpr_list[name] ~= nil then
|
||||||
if tpr_list[value_carryover] ~= nil then
|
minetest.chat_send_player(tpr_list[name], 'Teleport request denied.')
|
||||||
tpr_list[value_carryover] = nil
|
tpr_list[name] = nil
|
||||||
minetest.chat_send_player(sender, 'Teleport request denied.')
|
|
||||||
end
|
end
|
||||||
sender2 = tphr_list[value_carryover2]
|
if tphr_list[name] ~= nil then
|
||||||
if tphr_list[value_carryover2] ~= nil then
|
minetest.chat_send_player(tphr_list[name], 'Teleport request denied.')
|
||||||
tphr_list[value_carryover2] = nil
|
tphr_list[name] = nil
|
||||||
minetest.chat_send_player(sender2, 'Teleport request denied.')
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user