mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 15:33:00 +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)
|
local newval = func(value, i)
|
||||||
if newval ~= nil then table.insert(tbl, newval) end
|
if newval ~= nil then table.insert(tbl, newval) end
|
||||||
end
|
end
|
||||||
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Filters the items in the given table using the given function.
|
--- Filters the items in the given table using the given function.
|
||||||
|
|
Loading…
Reference in a new issue