mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +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:
|
case ItemPayload.ItemKind.Hq:
|
||||||
var item = data.GetExcelSheet<Item>()?.GetRow(itemId);
|
var item = data.GetExcelSheet<Item>()?.GetRow(itemId);
|
||||||
displayName = item?.Name;
|
displayName = item?.Name;
|
||||||
rarity = item.Rarity;
|
rarity = item?.Rarity ?? 1;
|
||||||
break;
|
break;
|
||||||
case ItemPayload.ItemKind.EventItem:
|
case ItemPayload.ItemKind.EventItem:
|
||||||
displayName = data.GetExcelSheet<EventItem>()?.GetRow(itemId)?.Name;
|
displayName = data.GetExcelSheet<EventItem>()?.GetRow(itemId)?.Name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue