Added individual object timings to Entities / Tile Entities

This commit is contained in:
Shoghi Cervantes
2014-09-30 16:09:21 +02:00
parent f8378c09ba
commit 539fa232f8
8 changed files with 167 additions and 121 deletions

View File

@ -742,7 +742,11 @@ class Level implements ChunkManager, Metadatable{
* @return bool
*/
public function isFullBlock(Vector3 $pos){
$bb = $this->getBlock($pos)->getBoundingBox();
if($pos instanceof Block){
$bb = $pos->getBoundingBox();
}else{
$bb = $this->getBlock($pos)->getBoundingBox();
}
return $bb instanceof AxisAlignedBB and $bb->getAverageEdgeLength() >= 1;
}