]> git.lizzy.rs Git - minetest.git/commitdiff
Replace deprecated call to add_player_velocity in builtin (#10968)
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>
Thu, 18 Feb 2021 14:39:04 +0000 (15:39 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Feb 2021 14:39:04 +0000 (14:39 +0000)
builtin/game/knockback.lua

index b5c4cbc5a7706c30ff41ff6c88ae79db3eb2c7c2..a937aa186c5a950420c4da891e754ac4018a4bc2 100644 (file)
@@ -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)