From 280165fadae5aba74b787c509b73045c450a1617 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 12 Dec 2024 13:00:26 +0000 Subject: [PATCH] tweak feather falling (#150) changed y_velocity check for player so thart feather falling only works when actually falling and not standing around. --- 3d_armor/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d_armor/init.lua b/3d_armor/init.lua index e12bc88..6718b97 100644 --- a/3d_armor/init.lua +++ b/3d_armor/init.lua @@ -444,7 +444,7 @@ minetest.register_globalstep(function(dtime) local name = player:get_player_name() if armor.def[name].feather > 0 then local vel_y = player:get_velocity().y - if vel_y < 0 and vel_y < 3 then + if vel_y < -0.5 then vel_y = -(vel_y * 0.05) player:add_velocity({x = 0, y = vel_y, z = 0}) end