mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
New PlayerMoveEvent, improved player movement event firing
This commit is contained in:
@ -33,16 +33,15 @@ class Position extends Vector3{
|
||||
* @param int $y
|
||||
* @param int $z
|
||||
* @param Level $level
|
||||
* @param bool $strong
|
||||
*/
|
||||
public function __construct($x = 0, $y = 0, $z = 0, Level $level = null, $strong = false){
|
||||
public function __construct($x = 0, $y = 0, $z = 0, Level $level = null){
|
||||
$this->x = $x;
|
||||
$this->y = $y;
|
||||
$this->z = $z;
|
||||
$this->level = $level;
|
||||
}
|
||||
|
||||
public static function fromObject(Vector3 $pos, Level $level = null, $strong = false){
|
||||
public static function fromObject(Vector3 $pos, Level $level = null){
|
||||
return new Position($pos->x, $pos->y, $pos->z, $level);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user