mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-02 08:13:10 +00:00
Living: deprecated hasLineOfSight()
This commit is contained in:
parent
b21cd82e94
commit
bda0ca23b4
@ -294,6 +294,10 @@ abstract class Living extends Entity{
|
|||||||
return $nbt;
|
return $nbt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This function always returns true, no matter whether the target is in the line of sight or not.
|
||||||
|
* @see VoxelRayTrace::inDirection() for a more generalized method of ray-tracing to a target.
|
||||||
|
*/
|
||||||
public function hasLineOfSight(Entity $entity) : bool{
|
public function hasLineOfSight(Entity $entity) : bool{
|
||||||
//TODO: head height
|
//TODO: head height
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user