This commit is contained in:
Justus Wolff
2026-02-22 21:19:40 +01:00
parent 1e2bf6183b
commit a284cc6c87

View File

@@ -655,9 +655,6 @@ local function VP_lengthofdict(target)
end end
local function VP_splitstack(_stack, x) local function VP_splitstack(_stack, x)
local stack = _stack["stacks"] local stack = _stack["stacks"]
local dimensions = _stack["dimensions"]
local sx = dimensions["x"]
local sz = dimensions["z"]
local height = _stack["height"] local height = _stack["height"]
local stacks = {} local stacks = {}
local spliteverx = math.floor(VP_lengthofdict(stack)/x) local spliteverx = math.floor(VP_lengthofdict(stack)/x)
@@ -716,20 +713,20 @@ local function VP_printstack(buf, dimensions, cx,cy,cz,direction)
if tempbuf then if tempbuf then
cx,cz,direction = VP_moveto(x,z, cx,cz,direction) cx,cz,direction = VP_moveto(x,z, cx,cz,direction)
for _=1,buf["height"],1 do for _=1,buf["height"],1 do
move("down") move("down", true)
end end
for _,v in pairs(tempbuf) do for _,v in pairs(tempbuf) do
if v then if v then
place("down") place("down")
end end
move("up") move("up", true)
end end
move("up") move("up", true)
end end
end end
end end
VP_moveto(ox,oz, cx,cz,direction) VP_moveto(ox,oz, cx,cz,direction)
for _=1,buf["height"],1 do for _=1,buf["height"]+1,1 do
move("down") move("down")
end end
center(direction, 0) center(direction, 0)