Automatic cleanup of permission subscriptions on PermissibleBase destructor calls

this has gotten too complex ...
This commit is contained in:
Dylan K. Taylor
2021-06-12 21:12:39 +01:00
parent 0ebafbd224
commit bfcf4a25d4
5 changed files with 242 additions and 194 deletions

View File

@@ -87,9 +87,4 @@ class ConsoleCommandSender implements CommandSender{
}
$this->lineHeight = $height;
}
public function __destruct(){
//permission subscriptions need to be cleaned up explicitly
$this->perm->destroyCycles();
}
}