From 7d0ef89748c00e68be415aad366de398ae611c72 Mon Sep 17 00:00:00 2001 From: Index Date: Fri, 5 Jul 2024 03:04:50 -0500 Subject: [PATCH] fix: include tool in wearing avatar sandbox --- js/account/avatar-sandbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/account/avatar-sandbox.js b/js/account/avatar-sandbox.js index c50c262..3a656af 100644 --- a/js/account/avatar-sandbox.js +++ b/js/account/avatar-sandbox.js @@ -535,7 +535,7 @@ async function LoadItems() { function LoadWearing() { document.getElementById('wearing').innerHTML = ''; - [...Avatar.items, Avatar.shirt, Avatar.pants, Avatar.torso].filter((x) => x !== undefined).forEach(id => { + [...Avatar.items, Avatar.shirt, Avatar.pants, Avatar.tool, Avatar.torso].filter((x) => x !== undefined).forEach(id => { const Cached = Object.values(ItemCache)[Object.keys(ItemCache).indexOf(id.toString())] if (Cached !== undefined) { if (Cached.creator === undefined || Cached.creator === null) { @@ -630,5 +630,5 @@ function CleanAccessoryType(type) { headCover: "Head Cover", headAccessory: "Head Accessory" } - return Object.values(CleanAccessoryTypes)[Object.keys(CleanAccessoryTypes).indexOf(type)] || "!!!"+type + return Object.values(CleanAccessoryTypes)[Object.keys(CleanAccessoryTypes).indexOf(type)] || type } \ No newline at end of file