[Scripting][error]-InvalidContainerSlotError: The container slot is either empty or is no longer loaded. at <anonymous> (projectileHitEntity.js:129)
const equippable = player?.getComponent("equippable");
const slotHead = equippable?.getEquipmentSlot(EquipmentSlot.Head);
if(slotHead?.typeId === 'blc:armor'){
return
}
when I don't have the item in my head the log gives an error