Use first-class closures in more places

This commit is contained in:
Dylan K. Taylor
2023-07-19 13:56:48 +01:00
parent 537721fe7d
commit 914dd90b3d
5 changed files with 9 additions and 23 deletions

View File

@ -1009,7 +1009,7 @@ class Server{
$this->playerDataProvider = new DatFilePlayerDataProvider(Path::join($this->dataPath, "players"));
register_shutdown_function([$this, "crashDump"]);
register_shutdown_function($this->crashDump(...));
$loadErrorCount = 0;
$this->pluginManager->loadPlugins($this->pluginPath, $loadErrorCount);