From b59752bc845c0d224ac8c376961e109ffd941a14 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 16 Jan 2025 01:23:45 +0300 Subject: [PATCH] fix player_animator --- res/content/base/scripts/components/player_animator.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/content/base/scripts/components/player_animator.lua b/res/content/base/scripts/components/player_animator.lua index 871284d5..f85deddc 100644 --- a/res/content/base/scripts/components/player_animator.lua +++ b/res/content/base/scripts/components/player_animator.lua @@ -12,7 +12,7 @@ local function refresh_model(id) end function on_render() - local invid, slotid = player.get_inventory() + local invid, slotid = player.get_inventory(hud.get_player()) local id, _ = inventory.get(invid, slotid) if id ~= itemid then refresh_model(id)