mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-21 14:04:06 +02:00
Bugfix table_map: return result
This commit is contained in:
parent
00a60eba17
commit
a5c6e82ef3
@ -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 New Issue
Block a user