Skip to content

fix: status old decals - #450

Open
mrtacoguy01 wants to merge 2 commits into
NotValra:mainfrom
mrtacoguy01:fix/status-old-decals
Open

mrtacoguy01 wants to merge 2 commits into
NotValra:mainfrom
mrtacoguy01:fix/status-old-decals

Conversation

@mrtacoguy01

Copy link
Copy Markdown
Contributor

What the bug was

Setting status image decal id to an older decal (one that doesnt have an imageid) it would say "Couldn't find a decal with that ID." instead of loading the correct decal


How to reproduce it

  1. Have access to account with Tier 3 donator
  2. Go to your profile page
  3. Open status edit popup
  4. Enter an old decal id (eg. 6083310)
  5. Notice it says "Couldn't find a decal with that ID."

What caused it

in decals.js, the getDecal function needed textureId to exist. Older decals return textureId: 0 from the API used.


How it was fixed

Edit the check to fall back to the decals asset id when textureId is 0. Added check to verify asset was a decal (asset type 13) to prevent using other asset's thumbnails (eg. games and models)


Related Issue:

Discord Bug Report: https://discord.com/channels/1143867106765570088/1570717892725702666


Screenshots (Before / After)

Before After
before after

Asset used:

{8427350A-F4C0-4CC8-90A5-8180BD5D4F12}

@mrtacoguy01

Copy link
Copy Markdown
Contributor Author

tested and working on Chrome 157.0.8103.79

@mrtacoguy01 mrtacoguy01 changed the title Fix/status old decals fix: status old decals Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant