summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cactus.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/cactus.lua b/cactus.lua
index 8c2a670..ae0d77c 100644
--- a/cactus.lua
+++ b/cactus.lua
@@ -73,7 +73,7 @@ local function move_linear(n)
if n < 0 then dir = turtle.back end
for i = 1,math.abs(n) do dir() end
print(POS,n,FACING)
- POS = POS + n*FACING
+ POS = POS + FACING*n
end
local function moveby_xz(dv)