WTF, ghost objects and why does this fix it? (and btw, fixes #2488)

This commit is contained in:
Shoghi Cervantes
2015-01-03 03:38:25 +01:00
parent 8e3667c95b
commit d207a5daea
2 changed files with 3 additions and 2 deletions

View File

@ -565,7 +565,7 @@ class Item{
public function getBlock(){
if($this->block instanceof Block){
return $this->block;
return clone $this->block;
}else{
return Block::get(self::AIR);
}