add debugging code

This commit is contained in:
Justus Wolff
2026-02-22 20:19:54 +01:00
parent c66fedaf2f
commit 2123699e23

View File

@@ -628,7 +628,7 @@ local function VP_createstack(buf, dimensions)
for z=1,dimensions["z"],1 do
local tempbuf = {}
for y=1,dimensions["y"]+1,1 do -- for each y dimension
for y=1,dimensions["y"],1 do -- for each y dimension
local placecode = buf[posasstring(x,y,z)]
for layer=1,3,1 do -- layers
table.insert(tempbuf, needstobeplaced(placecode, layer))
@@ -638,7 +638,7 @@ local function VP_createstack(buf, dimensions)
end
VP_optimizestack(tempbuf)
if #tempbuf > 0 then out[posasstring(x,z)] = tempbuf end
if #tempbuf > 0 then print("bugcheck");read();out[posasstring(x,z)] = tempbuf end
end
end