2020-08-23 19:41:34 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
|
|
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
|
2020-09-11 01:47:58 +02:00
|
|
|
index 56f0d799ca80d877543ae43ba3c53d62bbce8133..7bac6fec57c92fb5025bd530ff1733faa36b377a 100644
|
2020-08-23 19:41:34 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
2020-09-02 11:12:25 +02:00
|
|
|
@@ -793,5 +793,9 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
2020-08-23 19:41:34 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public void playPickupItemAnimation(org.bukkit.entity.Item item, int quantity) {
|
|
|
|
+ getHandle().receive(((CraftItem) item).getHandle(), quantity);
|
|
|
|
+ }
|
|
|
|
// Paper end
|
|
|
|
}
|