Fixed ItemBlocks retaining Level references after being placed, close #1395

This commit is contained in:
Dylan K. Taylor 2017-09-27 12:04:56 +01:00
parent 48d2d7e422
commit 1c9b4f3e21

View File

@ -45,7 +45,7 @@ class ItemBlock extends Item{
}
public function getBlock() : Block{
return $this->block;
return clone $this->block;
}
public function getFuelTime() : int{