ExperienceOrb: fixed behaviour when placing blocks on top of them

This commit is contained in:
Dylan K. Taylor 2018-03-04 12:47:09 +00:00
parent 2ff3b12376
commit 2e4519cb36

View File

@ -209,4 +209,13 @@ class ExperienceOrb extends Entity{
return $hasUpdate;
}
protected function tryChangeMovement(){
$this->checkObstruction($this->x, $this->y, $this->z);
parent::tryChangeMovement();
}
public function canBeCollidedWith() : bool{
return false;
}
}