mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Merge branch 'release/3.2' into release/3.3
This commit is contained in:
commit
519659fd2b
@ -76,10 +76,6 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
|||||||
$this->server = $server;
|
$this->server = $server;
|
||||||
|
|
||||||
$this->sleeper = new SleeperNotifier();
|
$this->sleeper = new SleeperNotifier();
|
||||||
$server->getTickSleeper()->addNotifier($this->sleeper, function() : void{
|
|
||||||
$this->server->getNetwork()->processInterface($this);
|
|
||||||
});
|
|
||||||
|
|
||||||
$this->rakLib = new RakLibServer(
|
$this->rakLib = new RakLibServer(
|
||||||
$this->server->getLogger(),
|
$this->server->getLogger(),
|
||||||
\pocketmine\COMPOSER_AUTOLOADER_PATH,
|
\pocketmine\COMPOSER_AUTOLOADER_PATH,
|
||||||
@ -92,6 +88,9 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function start(){
|
public function start(){
|
||||||
|
$this->server->getTickSleeper()->addNotifier($this->sleeper, function() : void{
|
||||||
|
$this->server->getNetwork()->processInterface($this);
|
||||||
|
});
|
||||||
$this->rakLib->start(PTHREADS_INHERIT_CONSTANTS); //HACK: MainLogger needs constants for exception logging
|
$this->rakLib->start(PTHREADS_INHERIT_CONSTANTS); //HACK: MainLogger needs constants for exception logging
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user