Skip to content

Commit 280165f

Browse files
authored
tweak feather falling (#150)
changed y_velocity check for player so thart feather falling only works when actually falling and not standing around.
1 parent ab1bec3 commit 280165f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3d_armor/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ minetest.register_globalstep(function(dtime)
444444
local name = player:get_player_name()
445445
if armor.def[name].feather > 0 then
446446
local vel_y = player:get_velocity().y
447-
if vel_y < 0 and vel_y < 3 then
447+
if vel_y < -0.5 then
448448
vel_y = -(vel_y * 0.05)
449449
player:add_velocity({x = 0, y = vel_y, z = 0})
450450
end

0 commit comments

Comments
 (0)