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

Allow mock resolution to continue when exception thrown #403

Merged
merged 2 commits into from
Jul 15, 2023

Conversation

OrianaVenture
Copy link
Contributor

Adding try-catch block to GetValue to prevent exception from failing entire mock resolution chain. Null checking already implemented in codebase for usage of this getter.

…entire mock resolution chain. Null checking already implemented in codebase for usage of this getter.
@MSchmoecker
Copy link
Member

Looks good and I haven't found a better solution for your case with TMP either. Although a try/catch should also be added to FieldMember so that both classes behave similarly.

@MSchmoecker MSchmoecker merged commit b457a83 into Valheim-Modding:dev Jul 15, 2023
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