Skip to content

Commit

Permalink
Replace deprecated call to add_player_velocity in builtin (#10968)
Browse files Browse the repository at this point in the history
  • Loading branch information
LizzyFleckenstein03 committed Feb 18, 2021
1 parent f85e9ab commit b2ab5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/game/knockback.lua
Expand Up @@ -42,5 +42,5 @@ core.register_on_punchplayer(function(player, hitter, time_from_last_punch, tool
return -- barely noticeable, so don't even send
end

player:add_player_velocity(kdir)
player:add_velocity(kdir)
end)

0 comments on commit b2ab5fd

Please sign in to comment.