diff --git a/src/pocketmine/level/Position.php b/src/pocketmine/level/Position.php index 5d977b945..165dc2207 100644 --- a/src/pocketmine/level/Position.php +++ b/src/pocketmine/level/Position.php @@ -119,20 +119,6 @@ class Position extends Vector3{ return "Position(level=" . ($this->isValid() ? $this->getLevel()->getName() : "null") . ",x=" . $this->x . ",y=" . $this->y . ",z=" . $this->z . ")"; } - /** - * @param $x - * @param $y - * @param $z - * - * @return Position - */ - public function setComponents($x, $y, $z){ - $this->x = $x; - $this->y = $y; - $this->z = $z; - return $this; - } - public function equals(Vector3 $v) : bool{ if($v instanceof Position){ return parent::equals($v) and $v->getLevel() === $this->getLevel(); diff --git a/src/pocketmine/math/Vector3.php b/src/pocketmine/math/Vector3.php index f45b1fd1c..0a6a6218f 100644 --- a/src/pocketmine/math/Vector3.php +++ b/src/pocketmine/math/Vector3.php @@ -326,7 +326,7 @@ class Vector3{ * @param $y * @param $z * - * @return Vector3 + * @return $this */ public function setComponents($x, $y, $z){ $this->x = $x;