Skip to content

Commit

Permalink
Remove dupe load() causing reload debug spam
Browse files Browse the repository at this point in the history
This call is completely redundant.
  • Loading branch information
dktapps committed Oct 10, 2016
1 parent 36207de commit 23e4ca6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pocketmine/utils/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public function reload(){
$this->config = [];
$this->nestedCache = [];
$this->correct = false;
$this->load($this->file);
$this->load($this->file, $this->type);
}

Expand Down

2 comments on commit 23e4ca6

@robske110
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aaand you broke things.
Some plugins need reload() to re-detect the type. This is now broken. Will create a issue...

@dktapps
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robske110 go test again.

Please sign in to comment.