You loose gold ingots if piglin pick it up and die before giving item back.
Since piglins throw bartened item after admiring gold ingot, they now can drop admired ingot when killed before dropping an item.
Found while testing solution for MC-172356 which was fixed in two ways - by not dropping ingot at all and by delaying dropping bartened item. Only one fix method is required though.
Linked issues
relates to 3
Comments 2
We discussed this on the Mojira discord. In 20w09a, there were two fixes implemented:
piglins give you the reward after they stopped looking at the gold
piglins don't drop the gold while looking at it
Only one of those is necessary to fix MC-172356.
I am certain that this is likely intentional.