mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 15:36:08 +00:00
This commit is contained in:
@@ -726,17 +726,12 @@ abstract class Block extends Position implements Metadatable{
|
||||
* Sets the block position to a new Position object
|
||||
*
|
||||
* @param Position $v
|
||||
*
|
||||
* @throws \RuntimeException
|
||||
*/
|
||||
final public function position(Position $v){
|
||||
if(!$v->isValid()){
|
||||
throw new \RuntimeException("Undefined Level reference");
|
||||
}
|
||||
$this->x = (int) $v->x;
|
||||
$this->y = (int) $v->y;
|
||||
$this->z = (int) $v->z;
|
||||
$this->setLevel($v->getLevel(), false);
|
||||
$this->level = $v->level;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user