Fixed #453 multiple refs to the same cached NBT object tree

This commit is contained in:
Dylan K. Taylor
2017-03-23 11:40:33 +00:00
parent c040579e09
commit 96801be3d3
2 changed files with 15 additions and 5 deletions

View File

@ -37,10 +37,6 @@ class ItemBlock extends Item{
$this->block->setDamage($this->meta !== -1 ? $this->meta : 0);
}
public function __clone(){
$this->block = clone $this->block;
}
public function getBlock() : Block{
return $this->block;
}