Skip to content

Commit

Permalink
docs: changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmoecker committed Jul 15, 2023
1 parent b457a83 commit 49afc46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## Version 2.12.4
* Fixed mock resolution to not fail when a member throws an exception on GetValue. This happens in rare cases, for example when mocking a TMP component (thx OrianaVenture)

## Version 2.12.3
* Fixed an error with the console command for the upcoming 0.217 update (currently in PTB), still compatible with the stable Valheim release (0.216.9). Note that the PTB branch isn't supported and may cause unexpected issues at any time
* Fixed JotunnBuildTask compile issues for .NET 7.0
Expand Down
1 change: 1 addition & 0 deletions JotunnLib/Managers/MockSystem/FieldMember.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public override object GetValue(object obj)
}
catch
{
// this doesn't usually happen and isn't really harmful, so we just ignore it and don't resolve the field. Logging the error would be too much spam
return null;
}
}
Expand Down
2 changes: 2 additions & 0 deletions JotunnLib/Managers/MockSystem/PropertyMember.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public override object GetValue(object obj)
}
catch
{
// this doesn't usually happen, only in rare cases like mocking TMP components
// it's not really harmful, so we just ignore it and don't resolve the property. Logging the error would be too much spam
return null;
}
}
Expand Down

0 comments on commit 49afc46

Please sign in to comment.