Nullguard against items without a slotid
This commit is contained in:
parent
d7e37b0218
commit
ae1bc9ad3a
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user