mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Changed Block->getDrops() to return Item[]
This commit is contained in:
@ -1651,9 +1651,6 @@ class Level implements ChunkManager, Metadatable{
|
||||
return false;
|
||||
}else{
|
||||
$drops = $target->getDrops($item); //Fixes tile entities being deleted before getting drops
|
||||
foreach($drops as $k => $i){
|
||||
$drops[$k] = Item::get($i[0], $i[1], $i[2]);
|
||||
}
|
||||
}
|
||||
|
||||
$above = $this->getBlock(new Vector3($target->x, $target->y + 1, $target->z));
|
||||
|
Reference in New Issue
Block a user