aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2021-02-18 15:39:04 +0100
committerGitHub <noreply@github.com>2021-02-18 14:39:04 +0000
commitb2ab5fd1615ac5f907e43992d0905a56cddf798f (patch)
tree3f4a6d3e96a92b64e24588995a69431ef5ba88af
parentf85e9ab9254e2ae4ac13170f9edea00fb8d931a2 (diff)
downloadminetest-b2ab5fd1615ac5f907e43992d0905a56cddf798f.tar.gz
minetest-b2ab5fd1615ac5f907e43992d0905a56cddf798f.tar.bz2
minetest-b2ab5fd1615ac5f907e43992d0905a56cddf798f.zip
Replace deprecated call to add_player_velocity in builtin (#10968)
-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)