fix fill function
This commit is contained in:
@@ -95,7 +95,7 @@ local function fill(ntype, x,y,z, buf, sx,sz)
|
|||||||
local cx,cz = cn[1],cn[2]
|
local cx,cz = cn[1],cn[2]
|
||||||
local newneigh = fill_getneighbors(cx,y,cz, sx,sz, inittype,buf)
|
local newneigh = fill_getneighbors(cx,y,cz, sx,sz, inittype,buf)
|
||||||
for _,v in pairs(newneigh) do
|
for _,v in pairs(newneigh) do
|
||||||
table.insert(neighbors, newneigh)
|
table.insert(neighbors, v)
|
||||||
end
|
end
|
||||||
buf[posasstring(x,y,z)] = ntype
|
buf[posasstring(x,y,z)] = ntype
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user