From 8031084590f397df5908ccc2f85a02abaa08abaa Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Thu, 18 Mar 2021 18:39:50 -0300 Subject: [PATCH] removing useless if --- trike_custom_physics.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/trike_custom_physics.lua b/trike_custom_physics.lua index 70d3f22..52b5b20 100644 --- a/trike_custom_physics.lua +++ b/trike_custom_physics.lua @@ -60,11 +60,7 @@ function trike.physics(self) {x=-vel.x*self.water_drag,y=buoyacc-vel.y*abs(vel.y)*0.4,z=-vel.z*self.water_drag}) else -- self.isinliquid = false - if self._longit_speed > 1 then - self.object:set_acceleration({x=0,y=mobkit.gravity,z=0}) - else - self.object:set_acceleration({x=0,y=mobkit.gravity,z=0}) - end + self.object:set_acceleration({x=0,y=mobkit.gravity,z=0}) end end