mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
Added setItemStack(ItemStack stack) to CraftItemDrop
This commit is contained in:
parent
24f140d1f4
commit
743ff05b2e
@ -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 + '}';
|
||||
|
Loading…
Reference in New Issue
Block a user