mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 22:45:28 +00:00
PluginBase: Do not fill defaults from resources/config.yml (#2316)
This fixes #2219.
This commit is contained in:
parent
f3b2bcfd13
commit
7f0fa2ac3d
@ -258,10 +258,6 @@ abstract class PluginBase implements Plugin{
|
|||||||
public function reloadConfig(){
|
public function reloadConfig(){
|
||||||
$this->saveDefaultConfig();
|
$this->saveDefaultConfig();
|
||||||
$this->config = new Config($this->configFile);
|
$this->config = new Config($this->configFile);
|
||||||
if(($configStream = $this->getResource("config.yml")) !== null){
|
|
||||||
$this->config->setDefaults(yaml_parse(Config::fixYAMLIndexes(stream_get_contents($configStream))));
|
|
||||||
fclose($configStream);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user