immediatly fill in neighbors such that we get less lag

This commit is contained in:
justuswolff
2026-02-17 22:01:43 +01:00
parent 3c8896abbb
commit b1b6ca4be6

View File

@@ -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