mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-09 05:08:36 +00:00
Block: fixed crash on block factory clone
This commit is contained in:
parent
69fb2786c6
commit
2cd67aed72
@ -79,7 +79,7 @@ class Block{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function __clone(){
|
public function __clone(){
|
||||||
$this->pos = Position::fromObject($this->pos, $this->pos->getWorld());
|
$this->pos = clone $this->pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getIdInfo() : BlockIdentifier{
|
public function getIdInfo() : BlockIdentifier{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user