From 02c92dc6f85ba463a01140618afc3d1fcb1ace07 Mon Sep 17 00:00:00 2001 From: Sumyjkl Date: Sun, 7 Aug 2022 01:05:39 +1000 Subject: [PATCH] fix getting wrong node --- 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 fb630c9e77..d662c4fb8c 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -285,7 +285,7 @@ minetest.register_globalstep(function(dtime) elytra.speed = clamp(get_overall_velocity(player:get_velocity()) - 1, 0, 2) end -- don't let player get too fast by spamming jump - local block_below = minetest.get_node(vector.offset(player:get_velocity(), 0, -0.7, 0)).name + local block_below = minetest.get_node(vector.offset(player:get_pos(), 0, -0.7, 0)).name if minetest.registered_nodes[block_below].walkable then elytra.speed = clamp(elytra.speed, -1, 5) end