From 7365733a093eed1121f7ca757bfe89498062b7e4 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Mon, 13 Nov 2023 20:37:47 -0300 Subject: [PATCH] improved friction on water --- lib_planes/entities.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index 4a67728..6073497 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -331,7 +331,7 @@ function airutils.logic(self) if (math.abs(velocity.x) < 0.1 and math.abs(velocity.z) < 0.1) and is_flying == false and is_attached == false and self._engine_running == false then if self._ground_friction then - if self._ground_friction > 0.97 and self.buoyancy >= 1 then self.object:set_velocity({x=0,y=airutils.gravity*self.dtime,z=0}) end + if not self.isinliquid then self.object:set_velocity({x=0,y=airutils.gravity*self.dtime,z=0}) end end return end