mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Reload Bugfix
This commit is contained in:
parent
54f058de3e
commit
6dc33791a7
1 changed files with 6 additions and 2 deletions
|
|
@ -61,8 +61,12 @@ class Config{
|
|||
}
|
||||
|
||||
public function reload()
|
||||
{
|
||||
$this->load($this->file, $this->type, array());
|
||||
{
|
||||
unset($this->config);
|
||||
unset($this->correct);
|
||||
unset($this->type);
|
||||
$this->load($this->file);
|
||||
$correct = $this->check();
|
||||
}
|
||||
|
||||
public function load($file, $type = CONFIG_DETECT, $default = array()){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue