use digEmpty function in tunnel command

This commit is contained in:
Niklas Kapelle 2024-08-05 17:09:23 +02:00
parent be405887e2
commit 249a48807a
Signed by: niklas
GPG Key ID: 4EB651B36D841D16

View File

@ -114,7 +114,7 @@ class TurtleCtl extends CLIAppBase {
registerAsyncSubcommand("tunnel", (args) -> {
var len = args.getInt("length");
return asynPerform(Helper.combine.bind([Turtle.dig.bind(Front), Turtle.forward, Turtle.dig.bind(Up)]), len);
return asynPerform(Helper.combine.bind([Turtle.digEmpty.bind(Front), Turtle.forward, Turtle.digEmpty.bind(Up)]), len);
}, [Int("length")]);
}