fix a bit more stuff

This commit is contained in:
justuswolff
2026-02-17 22:02:55 +01:00
parent b1b6ca4be6
commit 1232262718

View File

@@ -75,7 +75,7 @@ local function load(name)
return content["buf"],content["dimensions"] return content["buf"],content["dimensions"]
end end
local function bufistype(buf, x,y,z, targettype) local function bufistype(buf, x,y,z, targettype)
return buf[posasstring(x,y,z)] == targettype or (targettype == 0 and not buf[posasstring(x,y,z)]) return buf[posasstring(x,y,z)] == targettype or (targettype == 0 and buf[posasstring(x,y,z)] == nil)
end end
local function fill_getneighbors(x,y,z, sx,sz, seltype,buf) local function fill_getneighbors(x,y,z, sx,sz, seltype,buf)
local out = {} local out = {}