2 Commits

Author SHA1 Message Date
KnackAtNite 4e4b2bd32d v0.0.3.13: Fix KeyNotFoundException when status ID not in sheet (return row not cache)
Debug Build and Test / Build against Latest Dalamud (push) Has been cancelled
Debug Build and Test / Build against Staging Dalamud (push) Has been cancelled
Release Build and Publish / Release Build against Staging Dalamud and deploy to MyDalamudPlugins (release) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-14 23:51:10 -05:00
KnackAtNite 931381e254 v0.0.3.12: Fix crash when status ID not in sheet (e.g. DRK dash 6620)
Debug Build and Test / Build against Latest Dalamud (push) Has been cancelled
Debug Build and Test / Build against Staging Dalamud (push) Has been cancelled
Release Build and Publish / Release Build against Staging Dalamud and deploy to MyDalamudPlugins (release) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-14 20:41:45 -05:00
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<Authors>cultbaus</Authors> <Authors>cultbaus</Authors>
<Company>-</Company> <Company>-</Company>
<Version>0.0.3.11</Version> <Version>0.0.3.13</Version>
<Description>This plugin manipulates flytext.</Description> <Description>This plugin manipulates flytext.</Description>
<Copyright>-</Copyright> <Copyright>-</Copyright>
<PackageProjectUrl>https://github.com/cultbaus/CBT</PackageProjectUrl> <PackageProjectUrl>https://github.com/cultbaus/CBT</PackageProjectUrl>
+6 -6
View File
@@ -79,34 +79,34 @@ public unsafe class SheetManager : S.IDisposable
private Action? GetActionRow(int actionID) private Action? GetActionRow(int actionID)
{ {
var row = LuminaActionSheet?.GetRow((uint)actionID); var row = LuminaActionSheet?.GetRowOrDefault((uint)actionID);
if (row != null) if (row != null)
{ {
this.actionCache[actionID] = row; this.actionCache[actionID] = row;
} }
return this.actionCache[actionID]; return row;
} }
private Status? GetStatusRow(int value1) private Status? GetStatusRow(int value1)
{ {
var row = LuminaStatusSheet?.GetRow((uint)value1); var row = LuminaStatusSheet?.GetRowOrDefault((uint)value1);
if (row != null) if (row != null)
{ {
this.statusCache[value1] = row; this.statusCache[value1] = row;
} }
return this.statusCache[value1]; return row;
} }
private Item? GetItemRow(int value1) private Item? GetItemRow(int value1)
{ {
var row = LuminaItemSheet?.GetRow((uint)value1); var row = LuminaItemSheet?.GetRowOrDefault((uint)value1);
if (row != null) if (row != null)
{ {
this.itemCache[value1] = row; this.itemCache[value1] = row;
} }
return this.itemCache[value1]; return row;
} }
} }