summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-04 00:41:56 +0100
committerubq323 <ubq323@ubq323.website>2024-04-04 00:41:56 +0100
commitfa84db80b41e89b35aefeefc60670bb7c0cf3875 (patch)
tree0ad043ceceadd0df5e16a16ae69d33cbc8af5741
parent40adebb26f915d550fb427d7d226a29f29a9e6bc (diff)
launch cactus
-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)