mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Fixed ItemBlocks retaining Level references after being placed, close #1395
This commit is contained in:
@ -45,7 +45,7 @@ class ItemBlock extends Item{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getBlock() : Block{
|
public function getBlock() : Block{
|
||||||
return $this->block;
|
return clone $this->block;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFuelTime() : int{
|
public function getFuelTime() : int{
|
||||||
|
Reference in New Issue
Block a user