mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-20 10:24:07 +00:00
Fixed ItemBlocks retaining Level references after being placed, close #1395
This commit is contained in:
parent
48d2d7e422
commit
1c9b4f3e21
@ -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{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user