From db1e3916bcfb46823a811a6cd6ae8cef62ed6e67 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Tue, 8 Oct 2024 13:45:34 +0200 Subject: [PATCH] Fix return value from onClick --- itemcontroller.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)