mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2024-11-19 22:03:55 +01:00
Fix some minor issues
This commit is contained in:
parent
b5643fa131
commit
2fe2febab6
@ -10,9 +10,7 @@ read_globals = {
|
||||
string = {fields = {"split", "trim"}},
|
||||
table = {fields = {"copy", "getn"}},
|
||||
|
||||
"minetest", "core",
|
||||
"vector", "ItemStack",
|
||||
"dump", "dump2",
|
||||
"minetest", "vector",
|
||||
|
||||
"chat2", "gamehub",
|
||||
"intllib", "areas",
|
||||
|
@ -462,8 +462,10 @@ function tp.tpc_send(sender, coordinates)
|
||||
tp.tpn_list[sender] = area.owner
|
||||
|
||||
minetest.after(tp.timeout_delay, function(name)
|
||||
if tp.tpc_list[name] then
|
||||
if tp.tpc_list[name] and tp.tpn_list[sender] then
|
||||
tp.tpc_list[name] = nil
|
||||
tp.tpn_list[sender] = nil
|
||||
|
||||
minetest.chat_send_player(sender, S("Request timed-out."))
|
||||
minetest.chat_send_player(area.owner, S("Request timed-out."))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user