mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 10:19:39 +00:00
Premature optimization again
This commit is contained in:
parent
6fb41c5c7f
commit
d6e343c2cf
@ -253,7 +253,7 @@ class Vector3{
|
||||
if($f < 0 or $f > 1){
|
||||
return null;
|
||||
}else{
|
||||
return new Vector3($this->x + $xDiff * $f, $this->y + $yDiff * $f, $this->z + $zDiff * $f);
|
||||
return new Vector3($x, $this->y + $yDiff * $f, $this->z + $zDiff * $f);
|
||||
}
|
||||
}
|
||||
|
||||
@ -280,7 +280,7 @@ class Vector3{
|
||||
if($f < 0 or $f > 1){
|
||||
return null;
|
||||
}else{
|
||||
return new Vector3($this->x + $xDiff * $f, $this->y + $yDiff * $f, $this->z + $zDiff * $f);
|
||||
return new Vector3($this->x + $xDiff * $f, $y, $this->z + $zDiff * $f);
|
||||
}
|
||||
}
|
||||
|
||||
@ -307,7 +307,7 @@ class Vector3{
|
||||
if($f < 0 or $f > 1){
|
||||
return null;
|
||||
}else{
|
||||
return new Vector3($this->x + $xDiff * $f, $this->y + $yDiff * $f, $this->z + $zDiff * $f);
|
||||
return new Vector3($this->x + $xDiff * $f, $this->y + $yDiff * $f, $z);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user