diff options
author | md_5 <git@md-5.net> | 2016-03-07 19:51:42 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-07 19:51:42 +1100 |
commit | bf43ca62a65800d1c1ced66d2e018eea28058bf0 (patch) | |
tree | 448e0d5c5299ffcc5f0b616c2cc85322a7c22cce /nms-patches/Entity.patch | |
parent | ab83272e2a09c579324a10b97c1f14d7265dfbfa (diff) | |
download | craftbukkit-bf43ca62a65800d1c1ced66d2e018eea28058bf0.tar craftbukkit-bf43ca62a65800d1c1ced66d2e018eea28058bf0.tar.gz craftbukkit-bf43ca62a65800d1c1ced66d2e018eea28058bf0.tar.lz craftbukkit-bf43ca62a65800d1c1ced66d2e018eea28058bf0.tar.xz craftbukkit-bf43ca62a65800d1c1ced66d2e018eea28058bf0.zip |
SPIGOT-1816: Rework drop capture.
Diffstat (limited to 'nms-patches/Entity.patch')
-rw-r--r-- | nms-patches/Entity.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/Entity.patch b/nms-patches/Entity.patch index d33d1882..464dff3a 100644 --- a/nms-patches/Entity.patch +++ b/nms-patches/Entity.patch @@ -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 && ((EntityLiving) this).drops != null) { ++ if (this instanceof EntityLiving) { + ((EntityLiving) this).drops.add(org.bukkit.craftbukkit.inventory.CraftItemStack.asBukkitCopy(itemstack)); + return null; + } |