From a58824a3d9549a25030edea1e7bc7d03c0e43cbc Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 16 Aug 2020 09:32:47 +1000 Subject: [PATCH] #725: HumanEntity - add a method to make the entity drop the item they're holding By: Shane Bee --- .../java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index c187670228..1f1f53bfdf 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -570,4 +570,9 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { entity.remove(); } } + + @Override + public boolean dropItem(boolean dropAll) { + return getHandle().dropItem(dropAll); + } }