Fixed dead entities and Item picking, improved timing reports

This commit is contained in:
Shoghi Cervantes
2015-05-06 16:21:35 +02:00
parent bff51322af
commit 44b5c23ee1
10 changed files with 73 additions and 73 deletions

View File

@ -94,7 +94,7 @@ class FallingSand extends Entity{
$hasUpdate = $this->entityBaseTick($tickDiff);
if(!$this->dead){
if($this->isAlive()){
if($this->ticksLived === 1){
$block = $this->level->getBlock($pos = (new Vector3($this->x - 0.5, $this->y - 0.5, $this->z - 0.5))->floor());
if($block->getId() !== $this->blockId){