Fixed Entity->getLineOfSight()

This commit is contained in:
Shoghi Cervantes
2014-10-10 09:53:58 +02:00
parent 13ec046f0d
commit 9ede8177df
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ abstract class Living extends Entity implements Damageable{
}
$blocks = [];
$itr = new BlockIterator($this->level, $this->getPosition(), $this->getEyeHeight(), $maxDistance);
$itr = new BlockIterator($this->level, $this->getPosition(), $this->getDirectionVector(), $this->getEyeHeight(), $maxDistance);
while($itr->valid()){
$itr->next();