mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +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(){
|
||||
if(!$this->getConfig()->save()){
|
||||
$this->getLogger()->critical("Could not save config to " . $this->configFile);
|
||||
}
|
||||
$this->getConfig()->save();
|
||||
}
|
||||
|
||||
public function saveDefaultConfig() : bool{
|
||||
|
Loading…
x
Reference in New Issue
Block a user