Minecraft 1.12.2, Minecraft 18w02a, Minecraft 1.13-pre2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, 1.15.1, 1.15.2 Pre-release 2, 1.15.2, 1.16.4, 20w49a, 21w03a, 21w05b, 21w06a, 1.17.1, 1.18.2, 1.19, 1.19.3
When you try to use an item, like a name tag or a spawn egg, on a mob leashed to yourself the leash is always cleared. Expected would be that the leash is either only cleared when you are not holding an item or when the item cannot be used on the mob (EnumActionResult.PASS).
How to reproduce
- Leash a pig
- Try right clicking the pig with a pig spawn egg to spawn baby pigs
→ The leash is cleared