From 94b8e2a239bed94c19f1d69f8d902fac1696c206 Mon Sep 17 00:00:00 2001
From: CraftBukkit/Spigot <noreply+git-craftbukkit@papermc.io>
Date: Tue, 1 Feb 2011 10:43:16 +0000
Subject: [PATCH] Added setItemStack(ItemStack stack) to CraftItemDrop

By: Dinnerbone <dinnerbone@dinnerbone.com>
---
 .../java/org/bukkit/craftbukkit/entity/CraftItemDrop.java     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java
index 649915a6e3..70b3c06b3a 100644
--- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java
+++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java
@@ -23,6 +23,10 @@ public class CraftItemDrop extends CraftEntity implements ItemDrop {
         return new CraftItemStack(item.a);
     }
 
+    public void setItemStack(ItemStack stack) {
+        item.a = new net.minecraft.server.ItemStack(stack.getTypeId(), stack.getAmount(), stack.getDurability());
+    }
+
     @Override
     public String toString() {
         return "CraftItemDrop{" + "item=" + item + '}';