Piglins will keep gold ingots in their inventories if attacked while admiring them
If a piglin is attacked while admiring a gold ingot, the piglin will stop admiring the ingot. But, the gold ingot goes into the piglin's inventory. This is inconsistent with the fact that piglins don't put gold ingots into their inventories when they barter with them.