Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix SpriteManager.GetWithNoDefault to avoid potential issues with custom icons #482

Conversation

LeeTwentyThree
Copy link
Member

Changes made in this pull request

  • Added a check to initialize the SpriteManager before calling GetWithNoDefault, if necessary.
    • Only needed for SN1; GetWithNoDefault doesn't exist in BZ.

Should resolve #472. I did test that just now and the resource tracker seems to work perfectly fine for custom icons (even without the fix), but this catch feels proper anyway and might solve some rare race conditions?

@Metious Metious merged commit 7a5ba3b into SubnauticaModding:master Oct 2, 2023
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ResourceTracker does not display custom icons
2 participants