From 20a5b756223564b756acbeefec53d0433a8bc4b7 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 26 Jul 2018 19:14:16 +0100 Subject: [PATCH] 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 --- src/pocketmine/plugin/PluginBase.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pocketmine/plugin/PluginBase.php b/src/pocketmine/plugin/PluginBase.php index 6127a1f5c..5cfdd08cc 100644 --- a/src/pocketmine/plugin/PluginBase.php +++ b/src/pocketmine/plugin/PluginBase.php @@ -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{