Nullguard against items without a slotid

This commit is contained in:
Dev 2024-02-12 15:33:16 +00:00
parent d7e37b0218
commit ae1bc9ad3a

View File

@ -198,7 +198,7 @@ export class InraidController
// Not dead
// Check for cultist amulets in special slot (only slot it can fit)
const amuletOnPlayer = serverPmcProfile.Inventory.items.filter((item) =>
item.slotId.startsWith("SpecialSlot")
item.slotId?.startsWith("SpecialSlot")
).find((item) => item._tpl === "64d0b40fbe2eed70e254e2d4");
if (amuletOnPlayer)
{