diff --git a/worldeditadditions/utils/tables.lua b/worldeditadditions/utils/tables.lua index 38a747a..8603484 100644 --- a/worldeditadditions/utils/tables.lua +++ b/worldeditadditions/utils/tables.lua @@ -77,6 +77,7 @@ function worldeditadditions.table_map(tbl, func) local newval = func(value, i) if newval ~= nil then table.insert(tbl, newval) end end + return result end --- Filters the items in the given table using the given function.