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
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function worldeditadditions.unwind_node_list(list)
local result = {}
for i,item in ipairs(list) do
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)
end
end