Fix zombie villager not dropping item once cured (#12230)

This commit is contained in:
Lulu13022002
2025-03-08 05:13:25 +01:00
committed by GitHub
parent 7a3d0c4e98
commit a6ce734fd0
2 changed files with 10 additions and 8 deletions

View File

@ -326,6 +326,16 @@
}
}
}
@@ -981,7 +_,9 @@
double d = this.getEquipmentDropChance(equipmentSlot);
if (d > 1.0) {
this.setItemSlot(equipmentSlot, ItemStack.EMPTY);
+ this.forceDrops = true; // Paper - Add missing forceDrop toggles
this.spawnAtLocation(level, itemBySlot);
+ this.forceDrops = false; // Paper - Add missing forceDrop toggles
}
}
}
@@ -1269,6 +_,22 @@
public <T extends Mob> T convertTo(
EntityType<T> entityType, ConversionParams conversionParams, EntitySpawnReason spawnReason, ConversionParams.AfterConversion<T> afterConversion