From da054100b875874ee031f832423025b76b77dcd0 Mon Sep 17 00:00:00 2001 From: manuel <manuel@noreply.localhost> Date: Sun, 8 Jan 2023 16:39:45 +0000 Subject: [PATCH] Update 'Turtle/Turtle.lua' --- Turtle/Turtle.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Turtle/Turtle.lua b/Turtle/Turtle.lua index f7f9d23..c9dd2ce 100644 --- a/Turtle/Turtle.lua +++ b/Turtle/Turtle.lua @@ -64,4 +64,13 @@ function Turtle:log(message) if self.verbose == true then print(message) end -end \ No newline at end of file +end + +function Turtle:copyPositionTable(position) + self:assertPositionFormat(position) + local positionClone = {} + for i = 1, 4 do + positionClone[i] = position[i] + end + return positionClone +end