aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0393-Add-playPickupItemAnimation-to-LivingEntity.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0393-Add-playPickupItemAnimation-to-LivingEntity.patch')
-rw-r--r--patches/server/0393-Add-playPickupItemAnimation-to-LivingEntity.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/server/0393-Add-playPickupItemAnimation-to-LivingEntity.patch b/patches/server/0393-Add-playPickupItemAnimation-to-LivingEntity.patch
new file mode 100644
index 0000000000..7fe52b1b6a
--- /dev/null
+++ b/patches/server/0393-Add-playPickupItemAnimation-to-LivingEntity.patch
@@ -0,0 +1,22 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: William Blake Galbreath <[email protected]>
+Date: Sun, 23 Aug 2020 19:36:22 +0200
+Subject: [PATCH] Add playPickupItemAnimation to LivingEntity
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
+index b1c4970920ca8972f637c846106ae37822e495cf..cf17328aef60e5c6a0d168d2ed4d181cf47ee0b4 100644
+--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
+@@ -984,4 +984,11 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
+ }
+ }
+ // Paper end - entity jump API
++
++ // Paper start - pickup animation API
++ @Override
++ public void playPickupItemAnimation(final org.bukkit.entity.Item item, final int quantity) {
++ this.getHandle().take(((CraftItem) item).getHandle(), quantity);
++ }
++ // Paper end - pickup animation API
+ }