mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-02 12:05:50 +01:00
wireframe/corner_set: fix luacheck warnings
This commit is contained in:
parent
3d12345972
commit
c443459282
@ -12,8 +12,8 @@ function worldeditadditions.corner_set(pos1,pos2,node)
|
|||||||
|
|
||||||
-- z y x is the preferred loop order (because CPU cache I'd guess, since then we're iterating linearly through the data array)
|
-- z y x is the preferred loop order (because CPU cache I'd guess, since then we're iterating linearly through the data array)
|
||||||
local counts = { replaced = 0 }
|
local counts = { replaced = 0 }
|
||||||
for k,z in pairs({pos1.z,pos2.z}) do
|
for i,z in pairs({pos1.z,pos2.z}) do
|
||||||
for k,y in pairs({pos1.y,pos2.y}) do
|
for j,y in pairs({pos1.y,pos2.y}) do
|
||||||
for k,x in pairs({pos1.x,pos2.x}) do
|
for k,x in pairs({pos1.x,pos2.x}) do
|
||||||
minetest.set_node(vector.new(x,y,z), {name=node})
|
minetest.set_node(vector.new(x,y,z), {name=node})
|
||||||
counts.replaced = counts.replaced + 1
|
counts.replaced = counts.replaced + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user