mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed Entity->getLineOfSight()
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user