Changed Block->getDrops() to return Item[]

This commit is contained in:
Dylan K. Taylor
2017-08-18 11:21:33 +01:00
parent c8ed2406d7
commit d8f0dd6db8
94 changed files with 314 additions and 373 deletions

View File

@ -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));