From 11278f66d92d9807f74739928ccf6131ca5efdf8 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 12 Dec 2024 08:08:28 +0000 Subject: [PATCH] tweak feather falling 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 e12bc88c..6718b971 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