summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityItem.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-06-26 08:34:52 +1000
committermd_5 <git@md-5.net>2017-06-26 08:34:52 +1000
commitd7cd7275f28ce2ace4dc2051e77a9c5ec80743f1 (patch)
tree4333dd2e3c0493680e10f6f64545b658566b683d /nms-patches/EntityItem.patch
parentde7608559660c92d43e52099325155fa2758561b (diff)
downloadcraftbukkit-d7cd7275f28ce2ace4dc2051e77a9c5ec80743f1.tar
craftbukkit-d7cd7275f28ce2ace4dc2051e77a9c5ec80743f1.tar.gz
craftbukkit-d7cd7275f28ce2ace4dc2051e77a9c5ec80743f1.tar.lz
craftbukkit-d7cd7275f28ce2ace4dc2051e77a9c5ec80743f1.tar.xz
craftbukkit-d7cd7275f28ce2ace4dc2051e77a9c5ec80743f1.zip
SPIGOT-3379: Generalise canPickupItems to other entities.
Diffstat (limited to 'nms-patches/EntityItem.patch')
-rw-r--r--nms-patches/EntityItem.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/EntityItem.patch b/nms-patches/EntityItem.patch
index 078275d7..f34b0b89 100644
--- a/nms-patches/EntityItem.patch
+++ b/nms-patches/EntityItem.patch
@@ -88,7 +88,7 @@
+ if (this.pickupDelay <= 0 && canHold > 0) {
+ itemstack.setCount(canHold);
+ PlayerPickupItemEvent event = new PlayerPickupItemEvent((org.bukkit.entity.Player) entityhuman.getBukkitEntity(), (org.bukkit.entity.Item) this.getBukkitEntity(), remaining);
-+ // event.setCancelled(!entityhuman.canPickUpLoot); TODO
++ event.setCancelled(!entityhuman.canPickUpLoot);
+ this.world.getServer().getPluginManager().callEvent(event);
+ itemstack.setCount(canHold + remaining);
+