mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Living: wipe out effect add/remove hooks onDispose()
This commit is contained in:
parent
8fb74258f4
commit
341d8747b7
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user