mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Added BaseInventory->dropContents()
This commit is contained in:
@ -1689,9 +1689,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$tile->unpair();
|
||||
}
|
||||
|
||||
foreach($tile->getInventory()->getContents() as $chestItem){
|
||||
$this->dropItem($target, $chestItem);
|
||||
}
|
||||
$tile->getInventory()->dropContents($this, $target);
|
||||
}
|
||||
|
||||
$tile->close();
|
||||
|
Reference in New Issue
Block a user