From 74488c4d2ba776d748c769cd9f3467a6eb042c87 Mon Sep 17 00:00:00 2001 From: Index Date: Sun, 7 Jul 2024 08:06:28 -0500 Subject: [PATCH] fix: fix wearing assets other than hats by id avatar sandbox --- js/account/avatar-sandbox.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/account/avatar-sandbox.js b/js/account/avatar-sandbox.js index 05693e2..4f339fc 100644 --- a/js/account/avatar-sandbox.js +++ b/js/account/avatar-sandbox.js @@ -271,7 +271,11 @@ async function PageLoad() { if (SelectedType === 'hat') { Avatar.items.push(LoadAsset.previousElementSibling.value); } else { - Avatar[SelectedType] = parseInt(LoadAsset.previousElementSibling.value) + if (!isNaN(LoadAsset.previousElementSibling.value)) { + Avatar[SelectedType] = parseInt(LoadAsset.previousElementSibling.value) + } else { + Avatar[SelectedType] = LoadAsset.previousElementSibling.value + } } UpdateAvatar(); } else {