From 91a26c15dd4527e75896e6be9a52d5e94c5cf924 Mon Sep 17 00:00:00 2001 From: Michael Yoo Date: Sat, 21 Mar 2015 21:31:07 +1030 Subject: [PATCH] Utils\Config preserves document type between reloads. Fixes #2777 --- src/pocketmine/utils/Config.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pocketmine/utils/Config.php b/src/pocketmine/utils/Config.php index 56aa56f2a..43f7c1c91 100644 --- a/src/pocketmine/utils/Config.php +++ b/src/pocketmine/utils/Config.php @@ -83,8 +83,7 @@ public function __construct($file, $type = Config::DETECT, $default = [], &$corr public function reload(){ $this->config = []; $this->correct = false; - unset($this->type); - $this->load($this->file); + $this->load($this->file, $this->type); } /**