Living: wipe out effect add/remove hooks onDispose()

This commit is contained in:
Dylan K. Taylor 2020-12-01 18:27:10 +00:00
parent 8fb74258f4
commit 341d8747b7

View File

@ -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();
}