so first we fix an height issue aswell as an naming issue in a packet
This commit is contained in:
16
src/main.lua
16
src/main.lua
@@ -714,14 +714,8 @@ end]]
|
||||
local function VP_printstack(buf, dimensions, cx,cy,cz,direction)
|
||||
reset()
|
||||
move("up")
|
||||
if buf["height"] < cy then
|
||||
for _=1,math.abs(buf["height"]-cy),1 do
|
||||
move("down")
|
||||
end
|
||||
else
|
||||
for _=1,buf["height"]-cy,1 do
|
||||
move("up")
|
||||
end
|
||||
for _=1,buf["height"]-cy,1 do
|
||||
move("up")
|
||||
end
|
||||
local ox,oz = cx,cz
|
||||
cx,cz,direction = VP_moveto(cx+1,cz, cx,cz,direction)
|
||||
@@ -929,7 +923,7 @@ while true do
|
||||
x,y = VP_selectpos(buf,dimensions,"Select position of turtle "..tostring(v), x,y)
|
||||
rednet.send(v, {
|
||||
cx=x,
|
||||
cy=y,
|
||||
cz=y,
|
||||
}, "HB_vprint_pairpossend")
|
||||
end
|
||||
reset()
|
||||
@@ -945,7 +939,7 @@ while true do
|
||||
dimensions=dimensions,
|
||||
height=height
|
||||
}
|
||||
VP_printstack(ownstack,dimensions, 1,1,1,0)
|
||||
VP_printstack(ownstack,dimensions, 1,0,1,0)
|
||||
end
|
||||
end
|
||||
if action == 4 then
|
||||
@@ -997,7 +991,7 @@ while true do
|
||||
dimensions=dimensions,
|
||||
height=height
|
||||
}
|
||||
VP_printstack(ownstack,dimensions, cx,1,cz,0)
|
||||
VP_printstack(ownstack,dimensions, cx,0,cz,0)
|
||||
end
|
||||
if action == 5 then
|
||||
shell.run("rm", "main.lua")
|
||||
|
||||
Reference in New Issue
Block a user