checkAmmo() fails with lockpick or probe equipped
I get this error when I equip a lockpick or probe and and have ammo equipped.
Adding a check like this if types.Lockpick.objectIsInstance(currentEquipped) or types.Probe.objectIsInstance(currentEquipped) then return end
in onUpdate seems to fix the issue.