2020-08-23 17:41:34 +00: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-08-27 13:37:37 +00:00
|
|
|
index 76781281c0a6e7528b79002a0645902d33c8ae04..0819c31979540443576411ba8135e01a8db59775 100644
|
2020-08-23 17:41:34 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
2020-08-27 13:37:37 +00:00
|
|
|
@@ -772,5 +772,9 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
2020-08-23 17:41:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public void playPickupItemAnimation(org.bukkit.entity.Item item, int quantity) {
|
|
|
|
+ getHandle().receive(((CraftItem) item).getHandle(), quantity);
|
|
|
|
+ }
|
|
|
|
// Paper end
|
|
|
|
}
|