mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Destroy cycles that reference player for faster collection
This commit is contained in:
@ -78,6 +78,11 @@ abstract class BaseInventory implements Inventory{
|
||||
$this->setContents($items);
|
||||
}
|
||||
|
||||
public function __destruct(){
|
||||
$this->holder = null;
|
||||
$this->slots = [];
|
||||
}
|
||||
|
||||
public function getSize(){
|
||||
return $this->size;
|
||||
}
|
||||
|
Reference in New Issue
Block a user