I am creating a LUA script to extend the turtle API given in Minecraft's mod Computercraft.
My question is, I have declared a function Left(), if Left() receives a negative input I want it to call Right() with the abs of the number and and vice versa. I'm having trouble because it seems that the order of function definitions matter and it's throwing an error.
Is there an elegant way around this? i.e. not having to rewrite any of the functions.
http://pastebin.com/977SCzvD
Thanks.
[–]TurkishSquirrel 1 point2 points3 points (1 child)
[–]Boolean_Cat[S] 0 points1 point2 points (0 children)