diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java index 649915a6e3..70b3c06b3a 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftItemDrop.java +++ b/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 + '}';