mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
why did u use \Ds\Vector
This commit is contained in:
parent
db5ad749d2
commit
0a1a4f33f3
1 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
|
||||
use Ds\Vector;
|
||||
|
||||
class Entity extends Position
|
||||
{
|
||||
|
||||
|
|
@ -370,7 +368,7 @@ class Entity extends Position
|
|||
}
|
||||
|
||||
public function canSee(Entity $e){
|
||||
return $this->level->rayTraceBlocks(new Vector($this->x, $this->y + $this->getEyeHeight(), $this->z), new Vector($e->x, $e->y + $e->getEyeHeight(), $e->z)) == null;
|
||||
return $this->level->rayTraceBlocks(new Vector3($this->x, $this->y + $this->getEyeHeight(), $this->z), new Vector3($e->x, $e->y + $e->getEyeHeight(), $e->z)) == null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue