mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: null check item rarity
This commit is contained in:
parent
5b6c90f122
commit
a78007b05d
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ public class SeString
|
|||
case ItemPayload.ItemKind.Hq:
|
||||
var item = data.GetExcelSheet<Item>()?.GetRow(itemId);
|
||||
displayName = item?.Name;
|
||||
rarity = item.Rarity;
|
||||
rarity = item?.Rarity ?? 1;
|
||||
break;
|
||||
case ItemPayload.ItemKind.EventItem:
|
||||
displayName = data.GetExcelSheet<EventItem>()?.GetRow(itemId)?.Name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue