diff --git a/src/main.lua b/src/main.lua index 4ae29f4..5207e0a 100644 --- a/src/main.lua +++ b/src/main.lua @@ -655,9 +655,6 @@ local function VP_lengthofdict(target) end local function VP_splitstack(_stack, x) local stack = _stack["stacks"] - local dimensions = _stack["dimensions"] - local sx = dimensions["x"] - local sz = dimensions["z"] local height = _stack["height"] local stacks = {} 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 cx,cz,direction = VP_moveto(x,z, cx,cz,direction) for _=1,buf["height"],1 do - move("down") + move("down", true) end for _,v in pairs(tempbuf) do if v then place("down") end - move("up") + move("up", true) end - move("up") + move("up", true) end end end VP_moveto(ox,oz, cx,cz,direction) - for _=1,buf["height"],1 do + for _=1,buf["height"]+1,1 do move("down") end center(direction, 0)