From 6b8cd9a7cb8f2ed94743d1ed4d4217c9a4138898 Mon Sep 17 00:00:00 2001 From: Julian van den Berkmortel Date: Mon, 12 Apr 2021 08:28:19 +1000 Subject: [PATCH] SPIGOT-6207: forcibly drop the items of a converted zombie villager --- .../world/entity/monster/EntityZombieVillager.patch | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nms-patches/net/minecraft/world/entity/monster/EntityZombieVillager.patch b/nms-patches/net/minecraft/world/entity/monster/EntityZombieVillager.patch index a53380c61..d4f8e0744 100644 --- a/nms-patches/net/minecraft/world/entity/monster/EntityZombieVillager.patch +++ b/nms-patches/net/minecraft/world/entity/monster/EntityZombieVillager.patch @@ -76,7 +76,17 @@ EnumItemSlot[] aenumitemslot = EnumItemSlot.values(); int i = aenumitemslot.length; -@@ -226,7 +248,7 @@ +@@ -200,7 +222,9 @@ + double d0 = (double) this.e(enumitemslot); + + if (d0 > 1.0D) { ++ this.forceDrops = true; // CraftBukkit + this.a(itemstack); ++ this.forceDrops = false; // CraftBukkit + } + } + } +@@ -226,7 +250,7 @@ } }