Skip to content

Commit

Permalink
tweak feather falling (#150)
Browse files Browse the repository at this point in the history
changed y_velocity check for player so thart feather falling only works when actually falling and not standing around.
  • Loading branch information
tenplus1 authored Dec 12, 2024
1 parent ab1bec3 commit 280165f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3d_armor/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 280165f

Please sign in to comment.