fix typo results in leaking global

This commit is contained in:
Alexander Weber 2016-11-05 23:17:29 +01:00
parent f5077fb721
commit f187fc49b3

View File

@ -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