mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
Bugfix table_map: return result
This commit is contained in:
parent
00a60eba17
commit
a5c6e82ef3
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue