mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
WTF, ghost objects and why does this fix it? (and btw, fixes #2488)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user