immediatly fill in neighbors such that we get less lag
This commit is contained in:
@@ -101,6 +101,7 @@ local function fill(ntype, x,y,z, buf, sx,sz)
|
||||
local newneigh = fill_getneighbors(cx,y,cz, sx,sz, inittype,buf)
|
||||
for _,v in pairs(newneigh) do
|
||||
table.insert(neighbors, v)
|
||||
buf[posasstring(v[1],y,v[2])] = ntype
|
||||
totalneighbors = totalneighbors + 1
|
||||
end
|
||||
buf[posasstring(cx,y,cz)] = ntype
|
||||
|
||||
Reference in New Issue
Block a user