mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Fixed Item after-clone behaviour
This commit is contained in:
parent
90fa40de34
commit
afa98866e0
@ -37,6 +37,10 @@ class Block extends Item{
|
|||||||
$this->block->setDamage($this->meta);
|
$this->block->setDamage($this->meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __clone(){
|
||||||
|
$this->block = clone $this->block;
|
||||||
|
}
|
||||||
|
|
||||||
public function getBlock(){
|
public function getBlock(){
|
||||||
return $this->block;
|
return $this->block;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user