From 669cb48f544a41f67e73658f805530b5ca42aadb Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 19 Aug 2025 21:20:44 +0300 Subject: [PATCH] fix set_gravity_scale use --- res/scripts/components/mob.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/scripts/components/mob.lua b/res/scripts/components/mob.lua index 783506a1..840aba42 100644 --- a/res/scripts/components/mob.lua +++ b/res/scripts/components/mob.lua @@ -125,7 +125,7 @@ function on_physics_update(tps) jump() end body:set_vdamping(flight) - body:set_gravity_scale(flight and 0.0 or props.gravity_scale) + body:set_gravity_scale({0, flight and 0.0 or props.gravity_scale, 0}) body:set_linear_damping( (flight or not grounded) and props.air_damping or props.ground_damping )