nodes.lua: fix shadowing definition of loop variable i on line 22

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 19:54:57 +01:00
parent 3ac0fa14f9
commit 05eaf01912
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -21,7 +21,7 @@ function worldeditadditions.unwind_node_list(list)
local result = {} local result = {}
for i,item in ipairs(list) do for i,item in ipairs(list) do
local node_id = minetest.get_content_id(item.node) local node_id = minetest.get_content_id(item.node)
for i = 1, item.weight do for _i = 1, item.weight do
table.insert(result, node_id) table.insert(result, node_id)
end end
end end