Add minimum pvp knockbacks to other meele weapons

This commit is contained in:
Eliy21 2023-12-19 16:49:48 +00:00
parent ff882707de
commit 76bff2b540

View file

@ -304,6 +304,8 @@ function minetest.calculate_knockback(player, hitter, time_from_last_punch, tool
-- add minimum knockback
if knockback <= 1.5 then
knockback = knockback + 4.875
elseif knockback <= 6.19 then
knockback = knockback + 0.609375
end
end
-- add player velocity to knockback