mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Attacking entities fixed
This commit is contained in:
parent
1f8987183b
commit
9a3f887f44
7 changed files with 44 additions and 101 deletions
|
|
@ -34,7 +34,7 @@ class Position extends Vector3{
|
|||
}
|
||||
|
||||
public function distance($x = 0, $y = 0, $z = 0){
|
||||
if($x instanceof Position and $x->level !== $this->level){
|
||||
if(($x instanceof Position) and $x->level !== $this->level){
|
||||
return PHP_INT_MAX;
|
||||
}
|
||||
return parent::distance($x, $y, $z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue