From 20b229a9b9a5daf6e12ce441d83a409a2d82dc55 Mon Sep 17 00:00:00 2001 From: Sumyjkl Date: Mon, 1 Aug 2022 20:53:35 +1000 Subject: [PATCH] pitching up too far can make player fall fast --- 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 f786d696d..1b938aaa1 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -304,7 +304,7 @@ minetest.register_globalstep(function(dtime) -- NOTE: do not set this higher than about 0.7 or the game will get the wrong vel and it will be broken v = vector.multiply(v, -0.3) player:add_velocity(v) - vel.y = vel.y - (100 / math.max(speed_mult, 2)) * dtime + vel.y = vel.y - (300 / math.max(speed_mult, 1)) * dtime player:add_velocity(vel) playerphysics.add_physics_factor(player, "gravity", "mcl_playerplus:elytra", 0.1)