diff --git a/itemcontroller.lua b/itemcontroller.lua index e629e44..33f6d81 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -112,7 +112,7 @@ local function itemList(groups, wBudget, onClick) }, vertical = false, onClick = onClick and function(element, x, y, source) - onClick(element, x, y, source, group) + return onClick(element, x, y, source, group) end or nil } table.insert(entries, list)