Skip to content

Commit

Permalink
Fix some minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Panquesito7 committed May 3, 2020
1 parent b5643fa commit 2fe2feb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: https://raw.githubusercontent.com/ChaosWormz/teleport-request/master/.luacheckrc
luacheckrc_url: https://raw.githubusercontent.com/ChaosWormz/teleport-request/master/.luacheckrc
6 changes: 2 additions & 4 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},

"minetest", "core",
"vector", "ItemStack",
"dump", "dump2",
"minetest", "vector",

"chat2", "gamehub",
"intllib", "areas",

}
}
4 changes: 3 additions & 1 deletion functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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."))

Expand Down

0 comments on commit 2fe2feb

Please sign in to comment.