From b5bb6c64388400d89a7f14748b4a5e9156cd7598 Mon Sep 17 00:00:00 2001 From: NullBite Date: Fri, 25 Mar 2022 03:06:30 -0400 Subject: [PATCH] Add ugly workaround to fully load preview --- script.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/script.lua b/script.lua index 5c9ed38..043538d 100644 --- a/script.lua +++ b/script.lua @@ -777,7 +777,6 @@ function armor() else armor_state.boots=false end - pmRefresh() else armor_glint.leggings=false armor_glint.boots=false @@ -876,7 +875,15 @@ function tick() end + -- ugly code to make the avatar fully load in figura preview armor() + if not refreshed then + cooldown(1, "refreshAll") + PartsManager.refreshAll() + refreshed=true + else + pmRefresh() + end updateTailVisibility() -- End of tick -- old_state.health=player.getHealth()