mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Remove redundant knockback limiter
This commit is contained in:
parent
44c656502f
commit
d7ed37ef25
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ function minetest.calculate_knockback(player, hitter, time_from_last_punch, tool
|
|||
local dir_dot = (hv.x * dir.x) + (hv.z * dir.z)
|
||||
local hitter_mag = math.sqrt((hv.x * hv.x) + (hv.z * hv.z))
|
||||
local player_mag = math.sqrt((v.x * v.x) + (v.z * v.z))
|
||||
if dir_dot > 0 and player_mag <= hitter_mag * 0.625 then
|
||||
if dir_dot > 0 then
|
||||
knockback = knockback + hitter_mag * 0.6875
|
||||
end
|
||||
-- reduce floatiness
|
||||
|
|
Loading…
Reference in a new issue