Mojira Archive
MC-3591

Cured zombie villagers don't drop picked up items

The bug

A zombie villager picked up items dropped by a fellow player, specifically armor. The villager had been cured, and the armour was lost.

How to reproduce

  1. Summon a zombie villager that can pick up items
    /summon minecraft:zombie_villager ~ ~ ~ {CanPickUpLoot:1b}
    
  2. Give an item to the zombie villager
  3. Cure the zombie villager (command below for alternative, faster method)
    /data merge entity @e[type=zombie_villager,limit=1,sort=nearest] {ConversionTime:1}
    

    Notice the items are gone

The fix

Call the method EntityLiving.dropEquipment(wasRecentlyHit, lootingModifier) in EntityZombieVillager.finishConversion().