From f187fc49b3511e0ff25437a4e8626e42b630e354 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Sat, 5 Nov 2016 23:17:29 +0100 Subject: [PATCH] fix typo results in leaking global --- checks/useless_items.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/useless_items.lua b/checks/useless_items.lua index 2f7e6e8..f926375 100644 --- a/checks/useless_items.lua +++ b/checks/useless_items.lua @@ -70,7 +70,7 @@ local check = function(name, def) end -- Are there any callback functions defined? - if def.on_use ~= nil or def.after_use ~= nil or is_custom(def.on_secondary_use) or is_custom(def.on_place) or is_custom(on_drop) then + if def.on_use ~= nil or def.after_use ~= nil or is_custom(def.on_secondary_use) or is_custom(def.on_place) or is_custom(def.on_drop) then return end