From 8e8cf7981ade557580ff9da6eaaa17264ac39086 Mon Sep 17 00:00:00 2001 From: Index Date: Wed, 3 Jul 2024 00:49:11 -0500 Subject: [PATCH] fix: fix errors wearing toolbox assets in avatar sandbox --- js/account/avatar-sandbox-rewrite.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/account/avatar-sandbox-rewrite.js b/js/account/avatar-sandbox-rewrite.js index 006a78a..0b23822 100644 --- a/js/account/avatar-sandbox-rewrite.js +++ b/js/account/avatar-sandbox-rewrite.js @@ -292,6 +292,11 @@ async function UpdateAvatar() { const MeshURL = (await (await fetch('https://api.polytoria.com/v1/assets/serve-mesh/' + x)).json()) if (MeshURL.success) { ItemCache[x].asset = MeshURL.url + + if (["mesh", "decal", "audio"].indexOf(ItemCache[x].type) !== -1) { + ItemCache[x].type = document.getElementById('load-asset-type').options[document.getElementById('load-asset-type').selectedIndex].value + } + if (ItemCache[x].type === 'hat') { FormattedAvatar.items[index] = MeshURL.url } else {