mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 23:01:01 +01:00
#725: HumanEntity - add a method to make the entity drop the item they're holding
This commit is contained in:
parent
82542d01d8
commit
13945b7687
1 changed files with 5 additions and 0 deletions
|
@ -570,4 +570,9 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
|||
entity.remove();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean dropItem(boolean dropAll) {
|
||||
return getHandle().dropItem(dropAll);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue