Skip to content

Commit 3b10a33

Browse files
StartAutomatingStartAutomating
authored andcommitted
fix: Fixing GoTo/Teleport position tracking ( Fixes #90 )
1 parent 7427d38 commit 3b10a33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Turtle.types.ps1xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ if ($this.IsPenDown) {
352352
} else {
353353
$this.Steps += " m $deltaX $deltaY"
354354
}
355-
$this.Position = $x, $y
355+
$this.Position = $deltaX, $deltaY
356356
return $this
357357
</Script>
358358
</ScriptMethod>
@@ -1063,7 +1063,7 @@ $Y
10631063
$deltaX = $x - $this.X
10641064
$deltaY = $y - $this.Y
10651065
$this.Steps += "m $deltaX $deltaY"
1066-
$this.Position = $x, $y
1066+
$this.Position = $deltaX, $deltaY
10671067
return $this
10681068
</Script>
10691069
</ScriptMethod>

0 commit comments

Comments
 (0)