SPIGOT-1831: Chicken / sheep not dropping items correctly.
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -364,7 +364,7 @@
|
||||
public EntityItem a(ItemStack itemstack, float f) {
|
||||
if (itemstack.count != 0 && itemstack.getItem() != null) {
|
||||
+ // CraftBukkit start - Capture drops for death event
|
||||
+ if (this instanceof EntityLiving) {
|
||||
+ if (this instanceof EntityLiving && !((EntityLiving) this).forceDrops) {
|
||||
+ ((EntityLiving) this).drops.add(org.bukkit.craftbukkit.inventory.CraftItemStack.asBukkitCopy(itemstack));
|
||||
+ return null;
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user