SPIGOT-6207: forcibly drop the items of a converted zombie villager

This commit is contained in:
Julian van den Berkmortel 2021-04-12 08:28:19 +10:00 committed by md_5
parent 0e26ddb6a3
commit 6b8cd9a7cb
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -76,7 +76,17 @@
EnumItemSlot[] aenumitemslot = EnumItemSlot.values(); EnumItemSlot[] aenumitemslot = EnumItemSlot.values();
int i = aenumitemslot.length; 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 @@
} }
} }