mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-19 15:35:52 +00:00
Merge pull request #1838 from PEMapModder/patch-2
Fixes Position::fromObject() $strong parameter neglected
This commit is contained in:
commit
2904aa06ef
@ -46,7 +46,7 @@ class Position extends Vector3{
|
||||
}
|
||||
|
||||
public static function fromObject(Vector3 $pos, Level $level, $strong = false){
|
||||
return new Position($pos->x, $pos->y, $pos->z, $level);
|
||||
return new Position($pos->x, $pos->y, $pos->z, $level, $strong);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -129,4 +129,4 @@ class Position extends Vector3{
|
||||
return "Position(level=" . ($this->isValid() ? $this->getLevel()->getName() : "null") . ",x=" . $this->x . ",y=" . $this->y . ",z=" . $this->z . ")";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user