From 471c9ddc3a7b86ea59fa34efc3db423ce7c88612 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Thu, 14 Jul 2016 23:30:43 -0400 Subject: [PATCH] Remove comment out of z quard --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index ac40480..7c367c0 100644 --- a/init.lua +++ b/init.lua @@ -97,7 +97,7 @@ function roll(self) movement = {x=math.floor(pos.x + 0.5),y=pos.y,z=pos.z - speed - overhang} end end - --[[ + elseif math.abs(direction.z) > 0 then if ((direction.z > 0) and (pos.z > math.floor(pos.z + 0.5))) or ((direction.z < 0) and (pos.z < math.floor(pos.z + 0.5))) then local overhang = pos.z - math.floor(pos.z + 0.5) -- how much past the center the cart is, (add to next dir @@ -115,7 +115,7 @@ function roll(self) movement = {x=pos.x - speed - overhang,y=pos.y,z=math.floor(pos.z + 0.5)} end end - ]]-- + end end