From ea4ae437d3a213ae5bf2ae33f02715927e9d8e51 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 10 Jan 2021 01:06:40 +0100 Subject: [PATCH] Do not hardcode animation frames --- init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index f1829b1..0d28c01 100644 --- a/init.lua +++ b/init.lua @@ -1747,10 +1747,13 @@ local function get_inventory_mode(player, fs, data, full_height) local props = player:get_properties() local name = player:get_player_name() + local anim = player:get_local_animation() --fs("style[player_model;bgcolor=black]") + fs(fmt("model", 0.2, 0.2, 4, 5.5, "player_model", - props.mesh, concat(props.textures, ","), "0,-150", "false", "false", "0,80")) + props.mesh, concat(props.textures, ","), "0,-150", "false", "false", + sprintf("%u,%u", anim.x, anim.y))) local extras = __3darmor or __skinsdb local xoffset = extras and 0 or 4.5