From 905af2ac1c945169bd98a65f28317637c08796e4 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 6 Jun 2020 11:58:55 +0200 Subject: [PATCH] Fix luacheck errors --- .luacheckrc | 3 ++- lua/controller.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 4b9429d..31175a1 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -23,5 +23,6 @@ read_globals = { "mcl_sounds", "pipeworks", "screwdriver", - "intllib" + "intllib", + "digilines" } diff --git a/lua/controller.lua b/lua/controller.lua index 892ae22..0e726a6 100644 --- a/lua/controller.lua +++ b/lua/controller.lua @@ -333,7 +333,7 @@ local function controller_node_timer(pos, elapsed) return true end - drawers_table_index = controller_get_drawer_index(pos, src_name) + local drawers_table_index = controller_get_drawer_index(pos, src_name) -- This might not be needed, but my concern is if the above indexing takes -- enough time, there could be a "race condition" where the item in the src