make outline-making not hang the server

This commit is contained in:
Kimapr 2019-12-25 23:08:40 +05:00
parent 46275a2cc8
commit e96b7328d5
1 changed files with 6 additions and 6 deletions

View File

@ -190,9 +190,9 @@ local function spawn_particles(x,y,z,player)
local visited = {}
for n1=0,1 do
for n2=0,1 do
for _,ord1 in ipairs({"x","y","z"}) do
for _,ord2 in ipairs({"x","y","z"}) do
for _,ord3 in ipairs({"x","y","z"}) do
minetest.after(0,function() for _,ord1 in ipairs({"x","y","z"}) do
minetest.after(0,function() for _,ord2 in ipairs({"x","y","z"}) do
minetest.after(0,function()for _,ord3 in ipairs({"x","y","z"}) do
if ord2 ~= ord1 and ord3 ~= ord2 and ord3 ~= ord1 then
for x=mi[ord1],ma[ord1] do
local pos = {[ord1]=x}
@ -212,9 +212,9 @@ local function spawn_particles(x,y,z,player)
--end
end
end
end
end
end
end end)
end end)
end end)
end
end
end