Items lose durability even when unused
What I expected to happen was...:
Nothing to lose durability
What actually happened was...:
Those items remain active and lose durability even when I don't use them
Steps to Reproduce:
1. Land in a pond with activated elytra and swim around
2. Try swimming up and down a lava lake
3. Ride a minecart, boat or a mob over soul sand or soil while wearing soul speed boots
Elytra lose durability every second they are deployed
Similarily, boots with soul speed use durability for every second the speed effect is applied (i.e. you're above soul soil or soul sand).
(July 2024 edit: the statement above regarding soul speed was incorrect at the time, it should be based on distance travelled rather than time. There's currently a bug that makes it lose durability by time instead: MC-274447)