fix: work around lumina bug
This commit is contained in:
parent
7c30b0f273
commit
dde4ba9b3b
|
@ -1,5 +1,4 @@
|
||||||
using Dalamud.Game.Chat.SeStringHandling.Payloads;
|
using Dalamud.Game.Chat.SeStringHandling.Payloads;
|
||||||
using Dalamud.Game.Internal.Network;
|
|
||||||
using Dalamud.Hooking;
|
using Dalamud.Hooking;
|
||||||
using Dalamud.Plugin;
|
using Dalamud.Plugin;
|
||||||
using Lumina.Excel.GeneratedSheets;
|
using Lumina.Excel.GeneratedSheets;
|
||||||
|
@ -26,7 +25,13 @@ namespace Globetrotter {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
EventItem opened = rank.KeyItemName.Value;
|
EventItem opened;
|
||||||
|
// FIXME: remove this try/catch when lumina is fixed
|
||||||
|
try {
|
||||||
|
opened = rank.KeyItemName.Value;
|
||||||
|
} catch (NullReferenceException) {
|
||||||
|
opened = null;
|
||||||
|
}
|
||||||
if (opened == null) {
|
if (opened == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -131,7 +136,7 @@ namespace Globetrotter {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static TreasureMapPacket ParsePacket(IntPtr dataPtr) {
|
public static TreasureMapPacket ParsePacket(IntPtr dataPtr) {
|
||||||
uint category = (uint)Marshal.ReadByte(dataPtr);
|
uint category = Marshal.ReadByte(dataPtr);
|
||||||
if (category != TREASURE_MAPS) {
|
if (category != TREASURE_MAPS) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue