mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +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);
|
||||
}
|
||||
|
||||
public function __clone(){
|
||||
$this->block = clone $this->block;
|
||||
}
|
||||
|
||||
public function getBlock(){
|
||||
return $this->block;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user