diff --git a/nc_sky_isgen/init.lua b/nc_sky_isgen/init.lua index 5edefdb..407e2cf 100644 --- a/nc_sky_isgen/init.lua +++ b/nc_sky_isgen/init.lua @@ -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