aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/knockback.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/game/knockback.lua')
-rw-r--r--builtin/game/knockback.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/knockback.lua b/builtin/game/knockback.lua
index b5c4cbc5a..a937aa186 100644
--- a/builtin/game/knockback.lua
+++ b/builtin/game/knockback.lua
@@ -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)