fix: fix wearing assets other than hats by id avatar sandbox

This commit is contained in:
Index 2024-07-07 08:06:28 -05:00
parent 14d9faa484
commit 74488c4d2b

View file

@ -271,7 +271,11 @@ async function PageLoad() {
if (SelectedType === 'hat') {
Avatar.items.push(LoadAsset.previousElementSibling.value);
} else {
if (!isNaN(LoadAsset.previousElementSibling.value)) {
Avatar[SelectedType] = parseInt(LoadAsset.previousElementSibling.value)
} else {
Avatar[SelectedType] = LoadAsset.previousElementSibling.value
}
}
UpdateAvatar();
} else {