mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Merge branch 'master' into mcpe-1.1
This commit is contained in:
@ -425,14 +425,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
}
|
||||
|
||||
public function getDrops(){
|
||||
$drops = [];
|
||||
if($this->inventory !== null){
|
||||
foreach($this->inventory->getContents() as $item){
|
||||
$drops[] = $item;
|
||||
}
|
||||
}
|
||||
|
||||
return $drops;
|
||||
return $this->inventory !== null ? array_values($this->inventory->getContents()) : [];
|
||||
}
|
||||
|
||||
public function saveNBT(){
|
||||
|
Reference in New Issue
Block a user