From aa93ce4b3a2e4673484078e1b50b2a9ba5153144 Mon Sep 17 00:00:00 2001 From: Sumyjkl Date: Tue, 2 Aug 2022 23:45:20 +1000 Subject: [PATCH] tweaked slowdown on pitch up --- mods/PLAYER/mcl_playerplus/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_playerplus/init.lua b/mods/PLAYER/mcl_playerplus/init.lua index 84a1af04f..f5998760b 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -307,7 +307,7 @@ minetest.register_globalstep(function(dtime) local direction = player:get_look_dir() local player_vel = player:get_velocity() local turn_amount = anglediff(minetest.dir_to_yaw(direction), minetest.dir_to_yaw(player_vel)) - local direction_mult = clamp(-direction.y + 0, -0.8, 1) + local direction_mult = clamp(-direction.y - 0.2, -0.8, 1) if direction_mult < 0 then direction_mult = -(direction_mult^2) / 2 end local speed_mult = elytra.speed + direction_mult * speedup_mult * dtime