mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Updated to newest RakLib
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
|
Reference in New Issue
Block a user