fix player_animator

This commit is contained in:
MihailRis 2025-01-16 01:23:45 +03:00
parent 43f0cbe3fe
commit b59752bc84

View File

@ -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)