From 931381e254b82879749207800f17ce15c75b7acc Mon Sep 17 00:00:00 2001 From: Knack117 Date: Sat, 14 Feb 2026 20:41:45 -0500 Subject: [PATCH] v0.0.3.12: Fix crash when status ID not in sheet (e.g. DRK dash 6620) Co-authored-by: Cursor --- CBT/CBT.csproj | 2 +- CBT/Helpers/SheetManager.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CBT/CBT.csproj b/CBT/CBT.csproj index 9a68938..fef2ba0 100644 --- a/CBT/CBT.csproj +++ b/CBT/CBT.csproj @@ -3,7 +3,7 @@ cultbaus - - 0.0.3.11 + 0.0.3.12 This plugin manipulates flytext. - https://github.com/cultbaus/CBT diff --git a/CBT/Helpers/SheetManager.cs b/CBT/Helpers/SheetManager.cs index fec9444..94e5398 100644 --- a/CBT/Helpers/SheetManager.cs +++ b/CBT/Helpers/SheetManager.cs @@ -79,7 +79,7 @@ public unsafe class SheetManager : S.IDisposable private Action? GetActionRow(int actionID) { - var row = LuminaActionSheet?.GetRow((uint)actionID); + var row = LuminaActionSheet?.GetRowOrDefault((uint)actionID); if (row != null) { this.actionCache[actionID] = row; @@ -90,7 +90,7 @@ public unsafe class SheetManager : S.IDisposable private Status? GetStatusRow(int value1) { - var row = LuminaStatusSheet?.GetRow((uint)value1); + var row = LuminaStatusSheet?.GetRowOrDefault((uint)value1); if (row != null) { this.statusCache[value1] = row; @@ -101,7 +101,7 @@ public unsafe class SheetManager : S.IDisposable private Item? GetItemRow(int value1) { - var row = LuminaItemSheet?.GetRow((uint)value1); + var row = LuminaItemSheet?.GetRowOrDefault((uint)value1); if (row != null) { this.itemCache[value1] = row;