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