fix fill function

This commit is contained in:
justuswolff
2026-02-17 21:53:15 +01:00
parent 5a2a494c29
commit df02298213

View File

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