Updated to newest RakLib

This commit is contained in:
Dylan K. Taylor
2020-12-12 19:06:45 +00:00
parent 3e0cf30285
commit f81d061ea9
3 changed files with 9 additions and 7 deletions

View File

@ -155,7 +155,6 @@ class RakLibInterface implements ServerEventListener, AdvancedNetworkInterface{
public function shutdown() : void{
$this->server->getTickSleeper()->removeNotifier($this->sleeper);
$this->interface->shutdown();
$this->rakLib->quit();
}

View File

@ -164,7 +164,10 @@ class RakLibServer extends Thread{
$this->ready = true;
$this->notify();
});
$manager->run();
while(!$this->isKilled){
$manager->tickProcessor();
}
$manager->waitShutdown();
$this->cleanShutdown = true;
}catch(\Throwable $e){
$this->setCrashInfo($e->getMessage());