mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Living: wipe out effect add/remove hooks onDispose()
This commit is contained in:
@@ -784,6 +784,8 @@ abstract class Living extends Entity{
|
||||
|
||||
protected function onDispose() : void{
|
||||
$this->armorInventory->removeAllViewers();
|
||||
$this->effectManager->getEffectAddHooks()->clear();
|
||||
$this->effectManager->getEffectRemoveHooks()->clear();
|
||||
parent::onDispose();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user