mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 14:49:59 +00:00
PluginBase: fixed error always being emitted on saveConfig()
This now throws exceptions... let's let the caller deal with this instead, it makes more sense anyway
This commit is contained in:
parent
c3bc751b04
commit
20a5b75622
@ -254,9 +254,7 @@ abstract class PluginBase implements Plugin{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function saveConfig(){
|
public function saveConfig(){
|
||||||
if(!$this->getConfig()->save()){
|
$this->getConfig()->save();
|
||||||
$this->getLogger()->critical("Could not save config to " . $this->configFile);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function saveDefaultConfig() : bool{
|
public function saveDefaultConfig() : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user