If mooshroom that is attached to a fence via a lead is sheared the lead dissapears
Steps to reproduce the bug:
Use lead to attach the mooshroom cow to a fence
Shear the mooshroom cow
Result:
Lead visualy appears to be still attached to the fence
Cow is not attached to the lead and can move freely
When clicked the lead on the fence no item is dropped
Expected Result
The lead would remain and not dissapear
Attachments
Comments 6
I would argue this may actually duplicate MC-88967 rather than relating to it as @unknown stated previously, and should be forwarded over to that issue. An entity being leashed is stored as NBT, so when the entity is converted to a new entity (and gets a new UUID), the leashed NBT is lost.
As shown when getting the data of the mooshroom:
[media]
When trying to get the data of the new entity (cow):
Notice the 'No entity was found' as the UUID changed, and the lack of the 'Leashed' tag
Otherwise; if there is underlying behavior I am unaware of, at least mark as related.
Another argument for keeping this open: MC-196736 is kept separate too.
Related MC-88967