Fix return value from onClick

This commit is contained in:
Gabriel Tofvesson 2024-10-08 13:45:34 +02:00
parent c6adf1cd09
commit db1e3916bc

View File

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