diff options
Diffstat (limited to 'patches/server/0488-Add-playPickupItemAnimation-to-LivingEntity.patch')
-rw-r--r-- | patches/server/0488-Add-playPickupItemAnimation-to-LivingEntity.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/server/0488-Add-playPickupItemAnimation-to-LivingEntity.patch b/patches/server/0488-Add-playPickupItemAnimation-to-LivingEntity.patch new file mode 100644 index 0000000000..9efead6d4e --- /dev/null +++ b/patches/server/0488-Add-playPickupItemAnimation-to-LivingEntity.patch @@ -0,0 +1,21 @@ +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 639d376bf382409410e26385134d36fd6e3b5f0c..537d1a6dcf8add34e8dac8aee2fa50c50ce7e5d0 100644 +--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java ++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +@@ -838,5 +838,10 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity { + ((Mob) getHandle()).getJumpControl().jump(); + } + } ++ ++ @Override ++ public void playPickupItemAnimation(org.bukkit.entity.Item item, int quantity) { ++ getHandle().take(((CraftItem) item).getHandle(), quantity); ++ } + // Paper end + } |