diff --git a/src/Player.php b/src/Player.php index cfd507e4..170e5276 100644 --- a/src/Player.php +++ b/src/Player.php @@ -326,7 +326,6 @@ class Player{ public function getSlot($slot){ $slot = $this->inventory[(int) $slot]; return BlockAPI::getItem($slot[0], $slot[1], $slot[2]); - return true; } public function sendInventorySlot($s){ diff --git a/src/math/Vector3.php b/src/math/Vector3.php index 6e01ef39..e7c2ae1f 100644 --- a/src/math/Vector3.php +++ b/src/math/Vector3.php @@ -30,7 +30,7 @@ class Vector3{ public function __construct($x = 0, $y = 0, $z = 0){ if(($x instanceof Vector3) === true){ - self::__construct($x->x, $x->y, $x->z); + Vector3::__construct($x->x, $x->y, $x->z); }else{ $this->x = $x; $this->y = $y;