Skills will stop working if you open a chest (or other container) holding the item

Hello, i found this really big issue

  1. use this item to test:
testsword:
  Id: netherite_sword
  Display: '&4&ltestsword'
  Lore: 
  - '&5&oTest bruh'
  - '&7&oSwing this word to destroy it'
  Skills:
  - consumeHeldItem{amount=1} @self ~onSwing
  1. the sword should break if you swing it
  2. open a chest holding the item in your hand
  3. close the chest and try using the skill, the sword won't break
  4. this only works if you never change slot

Here is a video of the issue: https://www.youtube.com/watch?v=3PVaWkRWYAc&feature=youtu.be

Please fix this, it can be used to exploit various items