From 0250c4ca7b8ed2df8745d085e48ee5b1c5ae92f4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 11 Jul 2021 02:36:33 +0200 Subject: [PATCH] Fix deprecated function in orienteering --- mods/orienteering/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/orienteering/init.lua b/mods/orienteering/init.lua index 08fe92c..367f50d 100644 --- a/mods/orienteering/init.lua +++ b/mods/orienteering/init.lua @@ -358,11 +358,11 @@ function orienteering.update_hud_displays(player) local v local attach = player:get_attach() if attach == nil then - v = player:get_player_velocity() + v = player:get_velocity() else v = attach:get_velocity() if not v then - v = player:get_player_velocity() + v = player:get_velocity() end end speed_ver = v.y