From 25491b3882edccb80ad67fbdf328a2f8ecfdabf5 Mon Sep 17 00:00:00 2001 From: Sumyjkl Date: Wed, 10 Aug 2022 13:24:08 +1000 Subject: [PATCH] prevent player from gaining too much speed by pitching down and spamming jump --- mods/PLAYER/mcl_playerplus/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/PLAYER/mcl_playerplus/init.lua b/mods/PLAYER/mcl_playerplus/init.lua index 5bd369d2b..5d6d23dec 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -283,7 +283,7 @@ minetest.register_globalstep(function(dtime) local elytra = mcl_playerplus.elytra[player] if not elytra.active then - elytra.speed = 2 + elytra.speed = 0 end local is_just_jumped = control.jump and not mcl_playerplus.is_pressing_jump[name] and not elytra.active @@ -295,7 +295,7 @@ minetest.register_globalstep(function(dtime) local block_below2 = minetest.get_node(vector.offset(fly_pos, 0, -1.9, 0)).name if minetest.registered_nodes[block_below].walkable or minetest.registered_nodes[block_below2].walkable then - elytra.speed = 1.5 + elytra.speed = 1 end end