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

fix: modify GetOrAddComponent to use TryGetComponent. #408

Merged
merged 1 commit into from
Sep 16, 2023

Conversation

redseiko
Copy link
Contributor

Null-coalescing operators do not work properly on Unity objects.

See: https://stackoverflow.com/q/76294124

Also it removed the BOM for some reason.

Null-coalescing operators do not work properly on Unity objects.

See: https://stackoverflow.com/q/76294124
@MSchmoecker MSchmoecker merged commit 98c4d1b into Valheim-Modding:dev Sep 16, 2023
1 check passed
@MSchmoecker
Copy link
Member

Thank you. Does this fix an edge case in some mods or is it a general improvement? I.e. should we push a fix for this or can it be part of the next update?

@redseiko
Copy link
Contributor Author

Just a general improvement. I'll be submitting a few more performance improvements for GUIManager as well. Can all be pushed as part of an update.

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.

2 participants