ServerScheduler: Require a Logger instance as ctor param, now non-dependent on Server

yay for unit-testing and reusability!!!
This commit is contained in:
Dylan K. Taylor
2018-05-30 12:29:19 +01:00
parent d03f36ebee
commit 132746aa3d
2 changed files with 8 additions and 5 deletions

View File

@ -1525,7 +1525,7 @@ class Server{
$this->logger->info($this->getLanguage()->translateString("pocketmine.server.start", [TextFormat::AQUA . $this->getVersion() . TextFormat::RESET]));
$this->scheduler = new ServerScheduler();
$this->scheduler = new ServerScheduler($this->logger);
if(($poolSize = $this->getProperty("settings.async-workers", "auto")) === "auto"){
$poolSize = 2;