File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## v0.0.24 (14 Oct 2024)
4
+ - Fix a DLC3 crash
5
+
3
6
## v0.0.23 (12 Oct 2024)
4
7
- Fix a DLC3 crash
5
8
Original file line number Diff line number Diff line change @@ -207,7 +207,11 @@ private void ReportPlayerInfo()
207
207
if ( Enum . IsDefined ( typeof ( EquipmentSlot ) , r . EquippedSlot ! ) )
208
208
{
209
209
string level = r . Level is > 0 ? $ " +{ r . Level } " : "" ;
210
- logger . Information ( $ " { Utils . FormatCamelAsWords ( r . EquippedSlot . ToString ( ) ) } : { ItemDb . GetItemByProfileId ( r . ProfileId ) ! . Name } { level } ") ;
210
+ LootItem ? item = ItemDb . GetItemByProfileId ( r . ProfileId ) ;
211
+ logger . Information ( item == null
212
+ ? $ "!!{ r . ProfileId } not found in the database!"
213
+ : $ " { Utils . FormatCamelAsWords ( r . EquippedSlot . ToString ( ) ) } : { item . Name } { level } ") ;
214
+
211
215
foreach ( InventoryItem m in character . Profile . Inventory . Where ( x => x . EquippedModItemId == r . Id ) )
212
216
{
213
217
if ( m . LootItem == null ) continue ;
You can’t perform that action at this time.
0 commit comments