mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +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