Server: Delay RakLib start until after world loading

fixes #2816
This commit is contained in:
Dylan K. Taylor 2019-03-25 14:49:12 +00:00
parent 0811ce81e5
commit 999174b0a7

View File

@ -1267,8 +1267,6 @@ class Server{
$this->enablePlugins(PluginLoadOrder::STARTUP);
$this->network->registerInterface(new RakLibInterface($this));
foreach((array) $this->getProperty("worlds", []) as $name => $options){
if($options === null){
$options = [];
@ -1322,6 +1320,8 @@ class Server{
$this->enablePlugins(PluginLoadOrder::POSTWORLD);
$this->network->registerInterface(new RakLibInterface($this));
if($this->getConfigBool("enable-query", true)){
$this->network->registerRawPacketHandler(new QueryHandler());
}