Bugfix table_map: return result

This commit is contained in:
Starbeamrainbowlabs 2021-05-30 00:11:13 +01:00
parent 00a60eba17
commit a5c6e82ef3
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 0 deletions

View File

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